Purpose
Command or Action
Configures a host domain for your Switch.
ip domain-name domain_name
Example:
Switch(config)#
ip domain-name
Step 4
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 rsa
Step 5
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.
Follow this procedure only if you are configuring the
Switch as an SSH server.
Note
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 6
Verifies your entries.
show running-config
Example:
Switch#
show running-config
Step 7
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config
Step 8
startup-config
Related Topics
SSH Configuration Guidelines, on page 115
Configuring the Switch for Local Authentication and Authorization, on page 107
Configuring the SSH Server
Follow these steps to configure the SSH server:
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
118
OL-29048-01
Configuring Secure Shell (SSH)
Configuring the SSH Server