406
C
HAPTER
36: SSH C
ONFIGURATION
Displaying SSH
Configuration
After the above configuration, you can execute the
display
command in any view
to display the configuration information and running status of SSH, so as to verify
your configuration.
SSH Configuration
Examples
When the Switch Acts as
the SSH Server and the
Authentication Type is
Password
Network requirements
As shown in Figure 130, establish an SSH connection between the host (SSH
Client) and the switch (SSH Server) for secure data exchange. The host runs
SSH2.0 client software. Password authentication is required.
Network diagram
Figure 130
Network diagram of SSH server configuration using password authentication
Configuration procedure
■
Configure the SSH server
# Create a VLAN interface on the switch and assign an IP address, which the
SSH client will use as the destination for SSH connection.
<4210> system-view
[4210] interface vlan-interface 1
[4210-Vlan-interface1] ip address 192.168.0.1 255.255.255.0
[4210-Vlan-interface1] quit
n
Generating the RSA and DSA key pairs on the server is prerequisite to SSH login.
Table 317
Display SSH configuration
Operation
Command
Description
Display host and server public
keys
display rsa local-key-pair
public
You can execute the
display
command in any view.
Display client RSA public
key(s)
display rsa peer-public-key
[
brief
|
name
keyname
]
Display local public key(s)
display public-key local
{
dsa | rsa
}
public
Display remote public key(s)
display public-key peer
[
brief
|
name
pubkey-name
]
Display SSH status and session
information
display ssh server
{
session
|
status
}
Display SSH user information
display ssh
user-information
[
username
]
Display the mappings
between host public keys and
SSH servers saved on a client
display ssh server-info
Switch
SSH Client
192 .168 .0 .2/24
VLAN-Interface 1
192.168.0.1/24
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...