Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

PurposeCommand or Action
Exits global configuration mode.switch(config)# exit
Step 3
(Optional)
Displays the SSH server keys.
switch# show ssh key
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 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 the 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.
To specify the SSH public keys in open SSH format, generate an SSH public key in open SSH format and
perform this task:
Procedure
PurposeCommand or Action
Enters configuration mode.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
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 271
Configuring SSH and Telnet
Specifying the SSH Public Keys for User Accounts