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

The following example shows how to specify an SSH public keys in open SSH format:
switch# configure terminal
switch(config)# username User1 sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAri3mQy4W1AV9Y2t2hrEWgbUEYz
CfTPO5B8LRkedn56BEy2N9ZcdpqE6aqJLZwfZcTFEzaAAZp9AS86dgBAjsKGs7UxnhGySr8ZELv+DQBsDQH6rZt0KR+2Da8hJD4Z
XIeccWk0gS1DQUNZ300xstQsYZUtqnx1bvm5Ninn0McNinn0Mc=
switch(config)# exit
switch# show user-account
switch# copy running-config startup-config
The username command example above is a single line that has been broken for legibility.Note
Specifying the SSH Public Keys in IETF SECSH Format
You can specify the SSH public keys in IETF SECSH format for user accounts.
To specify the SSH public keys in IETF SECSH format, generate an SSH public key in IETF SCHSH format,
and perform this task:
Procedure
PurposeCommand or Action
Downloads the file containing the SSH key in IETF
SECSH format from a server. The server can be
FTP, SCP, SFTP, or TFTP.
switch# copy server-file bootflash:
filename
Step 1
Enters configuration mode.switch# configure terminal
Step 2
Configures the SSH public key in SSH format.
switch(config)# username username
sshkey file filename
Step 3
Exits global configuration mode.switch(config)# exit
Step 4
(Optional)
Displays the user account configuration.
switch# show user-account
Step 5
(Optional)
Copies the running configuration to the startup
configuration.
switch# copy running-config
startup-config
Step 6
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:
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
272 OL-16597-01
Configuring SSH and Telnet
Specifying the SSH Public Keys in IETF SECSH Format