
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
1-9
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring SSH and Telnet
Verifying the SSH and Telnet Configuration
Verifying the SSH and Telnet Configuration
To display the SSH configuration information, perform one of the following tasks:
SSH Example Configuration
The following example shows how to configure SSH:
Step 1
Generate an SSH server key.
switch(config)#
ssh key rsa
generating rsa key(1024 bits).....
.
generated rsa key
Step 2
Enable the SSH server.
switch#
configure terminal
switch(config)#
ssh server enable
Step 3
Display the SSH server key.
switch(config)#
show ssh key
rsa Keys generated:Sat Sep 29 00:10:39 2007
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAvWhEBsF55oaPHNDB/OdMZm99n2U0
ChzZG4svRWmHuJY4PeDWl0e5yE3g3EO3pjDDmt923siNiv5aSga60K36lr39HmXL6VgpRVn1XQFiBwn4
na+H1uWEA0tka2uOtXlDhliEmn4HVXOjGhFhoNE=
bitcount:1024
fingerprint:
51:6d:de:1c:c3:29:50:88:df:cc:95:f0:15:5d:9a:df
**************************************
could not retrieve dsa key information
**************************************
Step 4
Specify the SSH public key in Open SSH format.
switch(config)#
username User1 sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAy19oF3f1XswK3OiW4H7YyUyuA50rv7gsEPjhOBYmsi6PAVKui1nIf/
DQhum+lJNqJP/eLlVKRXFY/G+lJNIQW3g9igXVn+NjnI1B7ihvpVh7dLddMOXwOnXHYshXmSiH
3UD/vKyziEh5S4Tplx8=
Step 5
Save the configuration.
switch(config)#
copy running-config startup-config
Command
Purpose
show ssh key [dsa | rsa]
Displays SSH server key-pair information.
show running-config security
[
all
]
Displays the SSH and user account configuration in the
running configuration. The
all
keyword displays the
default values for the SSH and user accounts.
show ssh server
Displays the SSH server configuration.
show user-account
Displays user account information.