How to Configure SSH
Setting Up the Switch to Run SSH
Beginning in privileged EXEC mode, follow these steps to set up your switch to run SSH:
Before You Begin
Configure user authentication for local or remote access. This step is required. For more information, see
Related Topics below.
SUMMARY STEPS
1.
configure terminal
2.
hostname hostname
3.
ip domain-name domain_name
4.
crypto key generate rsa
5.
end
DETAILED STEPS
Purpose
Command or Action
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 1
Configures a hostname and IP domain name for your switch.
hostname hostname
Step 2
Example:
Switch(config)#
hostname your_hostname
Follow this procedure only if you are configuring the switch
as an SSH server.
Note
Configures a host domain for your switch.
ip domain-name domain_name
Example:
Switch(config)#
ip domain-name
Step 3
your_domain
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.
crypto key generate rsa
Example:
Switch(config)#
crypto key generate
Step 4
We recommend that a minimum modulus size of 1024 bits.
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29434-01
89
Configuring Secure Shell (SSH)
How to Configure SSH