Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
19-6
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 19 Configuring SSH and Telnet
Configuring SSH
Starting SSH Sessions to Remote Devices
To start SSH sessions to connect to remote devices from your Nexus 5000 Series switch, perform this
task:
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:
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:
Deleting SSH Server Keys
You can delete SSH server keys after you disable the SSH server.
Note To reenable SSH, you must first generate an SSH server key (see “Generating SSH Server Keys” section
on page 19-3).
Command Purpose
switch# ssh {hostname | username@hostname}
[vrf vrf-name]
Creates an SSH session to a remote device. The
hostname argument can be an IPv4 address, an IPv6
address, or a device name.
Command Purpose
switch# clear ssh hosts
Clears the SSH host sessions.
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# no ssh server enable
Disables the SSH server. The default is enabled.
Step 3
switch(config)# exit
Exits global configuration mode.
Step 4
switch# show ssh server
(Optional) Displays the SSH server configuration.
Step 5
switch# copy running-config startup-config
(Optional) Copies the running configuration to the
startup configuration.