Configuring SSH
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
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
You can start SSH sessions to connect to remote devices from your Nexus 5000 Series switch.
Command
Step 1
switch# ssh {hostname | username@hostname}
[vrf vrf-name]
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:
Command
Step 1
switch# clear ssh hosts
Disabling the SSH Server
By default, the SSH server is enabled on the Nexus 5000 Series switch.
To disable the SSH server to prevent SSH access to the switch, perform this task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# [no] feature ssh
Step 3
switch(config)# exit
Step 4
switch# show ssh server
Step 5
switch# copy running-config startup-config
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
1-6
Chapter 1
Purpose
Creates an SSH session to a remote device. The
hostname argument can be an IPv4 address, an IPv6
address, or a device name.
Purpose
Clears the SSH host sessions.
Purpose
Enters configuration mode.
Enables/disables the SSH server. The default is
enabled.
Exits global configuration mode.
(Optional) Displays the SSH server configuration.
(Optional) Copies the running configuration to the
startup configuration.
Configuring SSH and Telnet
OL-16597-01