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
Содержание Switch 4210 9-Port
Страница 10: ...Password Control Configuration 556 Displaying Password Control 563 Password Control Configuration Example 564 ...
Страница 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Страница 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Страница 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Страница 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Страница 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Страница 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Страница 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Страница 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Страница 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Страница 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Страница 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Страница 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Страница 340: ...338 CHAPTER 30 CLUSTER ...
Страница 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Страница 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Страница 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Страница 451: ......
Страница 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Страница 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Страница 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...