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
Starting SSH Sessions to Remote Devices
To start SSH sessions to connect to remote devices from your Nexus 5000 Series switch, perform this
task:
Command
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
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 ssh server enable
Step 3
switch(config)# exit
Step 4
switch# show ssh server
Step 5
switch# copy running-config startup-config
Deleting SSH Server Keys
You can delete SSH server keys after you disable the SSH server.
To reenable SSH, you must first generate an SSH server key (see
Note
on page
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
19-6
19-3).
Chapter 19
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.
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.
"Generating SSH Server Keys" section
Configuring SSH and Telnet
OL-16597-01