Purpose
Command or Action
To import the generated key pair, you are prompted to enter
a passphrase that decrypts the private key. The private key
is imported as the file that you specify, and the public key
is imported with the same filename followed by a .pub
extension.
For security reasons, this command can be
executed only from global configuration mode.
Note
Only the users whose keys are configured on the
server are able to access the server without a
password.
Note
What to do next
On the SCP or SFTP server, use the following command to append the public key stored in the *.pub file (for
example, key_rsa.pub) to the authorized_keys file:
$ cat key_rsa.pub >> $HOME/.ssh/ authorized_keys
You can now copy files from the Cisco NX-OS device to the server without a password using standard SSH
and SCP commands.
Configuring SCP and SFTP Servers
You can configure an SCP or SFTP server on the Cisco NX-OS device in order to copy files to and from a
remote device. After you enable the SCP or SFTP server, you can execute an SCP or SFTP command on the
remote device to copy the files to or from the Cisco NX-OS device.
The arcfour and blowfish cipher options are not supported for the SCP server.
Note
SUMMARY STEPS
1.
configure terminal
2.
[
no
]
feature scp-server
3.
[
no
]
feature sftp-server
4.
exit
5.
(Optional)
show running-config security
6.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
138
Configuring SSH and Telnet
Configuring SCP and SFTP Servers