Contents
Started studying for my ICND1 and am I total newb to the Cisco world I purchased a Cisco 3750 -24TS switch and am trying to configure SSH. When I enter the command command #crypto key generate rsa I get the below error: Lab(config)#ip domain-Name EXAMPLE.COM Lab(config)#CRY?% Unrecognized command Lab(config)#CRY Lab(config)#Crypto key. Hi When i'm trying to SSH to my 3750 switch i get the following error: Unable to negotiate with 192.168.1.250 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 I tried to use the command ip ssh dh min size 4096, but my switch doesn't know it. Here is the confi. Rack19r1(config)#crypto key generate rsa general-keys label cisco. The name for the keys will be: cisco. Choose the size of the key modulus in the range of 360 to 2048 for your. General Purpose Keys. Choosing a key modulus greater than 512 may take. A few minutes. How many bits in the modulus 512:% Generating 512 bit RSA keys, keys will be non-exportable.OK verification. Rack19r1#sh crypto key mypubkey rsa. Apr 19, 2016 Catalyst 3850 SSH setup issue. This person is a verified professional. Crypto key generate RSA, I think then specified 1024 bit key size. For SSH to be configure on a Cisco device a few things need to be configured. Hostname, Domain-name, enable SSH and generate the key.
Jan 19, 2010 Cisco 3750 will not accept SSH password! Ok I set my password in a Cisco 3750v2 switch stack and it works for the console and telnet access, but for some reason in SSH it always says Access denied. Jun 28, 2007 Generate RSA key pairs. Router(config)#crypto key generate rsa; Configure SSH-RSA keys for user and server authentication. Router(config)#ip ssh pubkey-chain; Configure the SSH username. Router(conf-ssh-pubkey)#username Specify the RSA public key of the remote peer. Router(conf-ssh-pubkey-user)#key-string; Specify the SSH key type and version.
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
The following are the prerequisites for configuring the switch for secure shell (SSH):
The following are restrictions for configuring the switch for secure shell.
Secure Shell (SSH) is a protocol that provides a secure, remote connection to a device. SSH provides more security for remote connections than Telnet does by providing strong encryption when a device is authenticated. This software release supports SSH Version 1 (SSHv1) and SSH Version 2 (SSHv2).
For SSH configuration examples, see the “SSH Configuration Examples” section in the “Configuring Secure Shell” section in the “Other Security Features” chapter of the Cisco IOS Security Configuration Guide, Cisco IOS Release 12.4. Hackhouse need for speed payback cd key generator.
SSH functions the same in IPv6 as in IPv4. For IPv6, SSH supports IPv6 addresses and enables secure, encrypted connections with remote IPv6 nodes over an IPv6 transport.
Note | For complete syntax and usage information for the commands used in this section, see the command reference for this release and the “Secure Shell Commands” section of the “Other Security Features” chapter of the Cisco IOS Security Command Reference, Release 12.4 and the Cisco IOS IPv6 Command Reference. |
The SSH feature has an SSH server and an SSH integrated client, which are applications that run on the switch. You can use an SSH client to connect to a switch running the SSH server. The SSH server works with the SSH client supported in this release and with non-Cisco SSH clients. The SSH client also works with the SSH server supported in this release and with non-Cisco SSH servers.
The switch supports an SSHv1 or an SSHv2 server.
The switch supports an SSHv1 client.
SSH supports the Data Encryption Standard (DES) encryption algorithm, the Triple DES (3DES) encryption algorithm, and password-based user authentication.
SSH also supports these user authentication methods:
Follow these guidelines when configuring the switch as an SSH server or SSH client:
The Secure Copy Protocol (SCP) feature provides a secure and authenticated method for copying switch configurations or switch image files. SCP relies on Secure Shell (SSH), an application and a protocol that provides a secure replacement for the Berkeley r-tools.
For SSH to work, the switch needs an RSA public/private key pair. This is the same with SCP, which relies on SSH for its secure transport.
Because SSH also relies on AAA authentication, and SCP relies further on AAA authorization, correct configuration is necessary.
Note | When using SCP, you cannot enter the password into the copy command. You must enter the password when prompted. |
The Secure Copy Protocol (SCP) feature provides a secure and authenticated method for copying switch configurations or switch image files. SCP relies on Secure Shell (SSH), an application and a protocol that provides a secure replacement for the Berkeley r-tools.
To configure the Secure Copy feature, you should understand the SCP concepts.
The behavior of SCP is similar to that of remote copy (rcp), which comes from the Berkeley r-tools suite, except that SCP relies on SSH for security. SCP also requires that authentication, authorization, and accounting (AAA) authorization be configured so the router can determine whether the user has the correct privilege level.
For information about how to configure and verify SCP, see the “Secure Copy Protocol” section in the Cisco IOS Security Configuration Guide: Securing User Services, Release 12.4.
How to Configure SSH
Beginning in privileged EXEC mode, follow these steps to set up your switch to run SSH:
Before You BeginConfigure user authentication for local or remote access. Generate a public key with putty. This step is required. For more information, see Related Topics below.
SUMMARY STEPS1.configureterminal
2.hostnamehostname
3.ip domain-namedomain_name
4.crypto key generate rsa
5.end
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 | configureterminal Example: | Enters the global configuration mode. | ||
Step 2 | hostnamehostname Example: | Configures a hostname and IP domain name for your switch.
| ||
Step 3 | ip domain-namedomain_name Example: | Configures a host domain for your switch. | ||
Step 4 | crypto key generate rsa Example: | Enables the SSH server for local and remote authentication on the switch and generates an RSA key pair. Generating an RSA key pair for the switch automatically enables SSH. We recommend that a minimum modulus size of 1024 bits. When you generate RSA keys, you are prompted to enter a modulus length. A longer modulus length might be more secure, but it takes longer to generate and to use.
| ||
Step 5 | end Example: | Returns to privileged EXEC mode. |
Beginning in privileged EXEC mode, follow these steps to configure the SSH server:
Note | This procedure is only required if you are configuring the switch as an SSH server. |
1.configureterminal
2.ip sshversion [12]
3.ip ssh {timeoutsecondsauthentication-retriesnumber}
4.Use one or both of the following:
5.end
Command or Action | Purpose | |
---|---|---|
Step 1 | configureterminal Example: | Enters the global configuration mode. |
Step 2 | ip sshversion [12] Example: | (Optional) Configures the switch to run SSH Version 1 or SSH Version 2.
If you do not enter this command or do not specify a keyword, the SSH server selects the latest SSH version supported by the SSH client. For example, if the SSH client supports SSHv1 and SSHv2, the SSH server selects SSHv2. |
Step 3 | ip ssh {timeoutsecondsauthentication-retriesnumber} Example: | Configures the SSH control parameters:
Repeat this step when configuring both parameters. |
Step 4 | Use one or both of the following:
Example: or | (Optional) Configures the virtual terminal line settings.
|
Step 5 | end Example: | Returns to privileged EXEC mode. |
Command | Purpose |
---|---|
show ip ssh | Shows the version and configuration information for the SSH server. |
show ssh | Shows the status of the SSH server. |
For more information about these commands, see the “Secure Shell Commands” section in the “Other Security Features” chapter of the Cisco IOS Security Command Reference .
Related Topic | Document Title |
---|---|
Configuring Identity Control policies and Identity Service templates for Session Aware networking. | Session Aware Networking Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches) |
Configuring RADIUS, TACACS+, Secure Shell, 802.1X and AAA. | Securing User Services Configuration Guide Library, Cisco IOS XE Release 3SE (Catalyst 3850 Switches) |
Description | Link |
---|---|
To help you research and resolve system error messages in this release, use the Error Message Decoder tool. |
MIB | MIBs Link |
---|---|
All supported MIBs for this release. | To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: |
Description | Link |
---|---|
The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies. To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. |