Purpose
Command or Action
(Optional)
Copies the running configuration to the startup configuration.
switch#
copy running-config
startup-config
Step 5
The following example shows how to generate an SSH server key:
switch#
configure terminal
switch(config)#
ssh key rsa 2048
switch(config)#
exit
switch#
show ssh key
switch#
copy running-config startup-config
Specifying the SSH Public Keys for User Accounts
You can configure an SSH public key to log in using an SSH client without being prompted for a password.
You can specify the SSH public key in one of three different formats:
•
Open SSH format
•
IETF SECSH format
•
Public Key Certificate in PEM format
Specifying the SSH Public Keys in Open SSH Format
You can specify the SSH public keys in SSH format for user accounts.
Procedure
Purpose
Command or Action
Enters global configuration move.
switch#
configure terminal
Step 1
Configures the SSH public key in SSH format.
switch(config)#
username username
sshkey ssh-key
Step 2
Exits global configuration mode.
switch(config)#
exit
Step 3
(Optional)
Displays the user account configuration.
switch#
show user-account
Step 4
(Optional)
Copies the running configuration to the startup
configuration.
switch#
copy running-config
startup-config
Step 5
The following example shows how to specify an SSH public key in open SSH format:
switch#
configure terminal
switch(config)#
username User1 sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAri3mQy4W1AV9Y2t2hrEWgbUEYz
Cisco Nexus 3600 NX-OS Security Configuration Guide, Release 7.x
62
Configuring SSH and Telnet
Specifying the SSH Public Keys for User Accounts