Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Procedure
PurposeCommand or Action
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
switch# copy server-file bootflash:
filename
Step 1
Enters configuration mode.switch# configure terminal
Step 2
(Optional)
Displays the user account configuration.
switch# show user-account
Step 3
(Optional)
Copies the running configuration to the startup
configuration.
switch# copy running-config
startup-config
Step 4
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
Starting SSH Sessions to Remote Devices
To start SSH sessions to connect to remote devices from your Cisco Nexus 5000 Series switch, perform this
task:
Procedure
PurposeCommand or Action
Creates an SSH session to a remote device. The
hostname argument can be an IPv4 address, an IPv6
address, or a host name.
switch# ssh {hostname |
username@hostname} [vrf vrf-name]
Step 1
Clearing SSH Hosts
When you download a file from a server using SCP or SFTP, you establish a trusted SSH relationship with
that server. To clear the list of trusted SSH servers for your user account, perform this task:
Procedure
PurposeCommand or Action
Clears the SSH host sessions.switch# clear ssh hosts
Step 1
Disabling the SSH Server
By default, the SSH server is enabled on the Cisco Nexus 5000 Series switch.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 273
Configuring SSH and Telnet
Starting SSH Sessions to Remote Devices