Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
19-5
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 19 Configuring SSH and Telnet
Configuring SSH
The following example shows how to specify the SSH public keys in the IETF SECSH format:
switch# copy tftp://10.10.1.1/secsh_file.pub bootflash:secsh_file.pub
switch# configure terminal
switch(config)# username User1 sshkey file bootflash:secsh_file.pub
switch(config)# exit
switch# show user-account
switch# copy running-config startup-config
Specifying the SSH Public Keys in PEM-Formatted Public Key Certificate Form
You can specify the SSH public keys in PEM-formatted Public Key Certificate form for user accounts.
To specify the SSH public keys in PEM-formatted Public Key Certificate form, generate an SSH public
key in PEM-Formatted Public Key Certificate form and perform this task:
The following example shows how to specify the SSH public keys in PEM-formatted public key
certificate form:
switch# copy tftp://10.10.1.1/cert.pem bootflash:cert.pem
switch# configure terminal
switch# show user-account
switch# copy running-config startup-config
Step 3
switch(config)# username username sshkey file
filename
Configures the SSH public key in SSH format.
Step 4
switch(config)# exit
Exits global configuration mode.
Step 5
switch# show user-account
(Optional) Displays the user account
configuration.
Step 6
switch# copy running-config startup-config
(Optional) Copies the running configuration to
the startup configuration.
Command Purpose
Command Purpose
Step 1
switch# copy server-file bootflash:filename
Downloads the file containing the SSH key in
PEM-formatted Public Key Certificate form
from a server. The server can be FTP, SCP,
SFTP, or TFTP
Step 2
switch# configure terminal
Enters configuration mode.
Step 3
switch# show user-account
(Optional) Displays the user account
configuration.
Step 4
switch# copy running-config startup-config
(Optional) Copies the running configuration to
the startup configuration.