CfTPO5B8LRkedn56BEy2N9ZcdpqE6aqJLZwfZcTFEzaAAZp9AS86dgBAjsKGs7UxnhGyDQBsDQH2Da8hJD4Z
XIeccWk0gS1DQUNZ300xstQsYZUtqnx1bvm5Ninn0McNinn0Mc=
switch(config)#
exit
switch#
show user-account
switch#
copy running-config startup-config
The
username
command in the 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.
Procedure
Purpose
Command or Action
Downloads the file that contains 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 global configuration move.
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 key 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.
Cisco Nexus 3600 NX-OS Security Configuration Guide, Release 7.x
63
Configuring SSH and Telnet
Specifying the SSH Public Keys for User Accounts