SSH Configuration Examples 417
Figure 142 SSH client interface
-
When the Switch Acts as
an SSH Client and the
Authentication Type is
Password
Network requirements
As shown in Figure 143, establish an SSH connection between Switch A (SSH
Client) and Switch B (SSH Server) for secure data exchange. The user name for
login is client001 and the SSH server’s IP address is 10.165.87.136. Password
authentication is required.
Network diagram
Figure 143 Network diagram of SSH client configuration when using password
authentication
Configuration procedure
■ Configure Switch B
# 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 10.165.87.136 255.255.255.0
[4210-Vlan-interface1] quit
n
Generating the RSA and DSA key pairs on the server is prerequisite to SSH login.
Switch B
SSH Server
Switch A
SSH ClientVLAN-Interface 1
10.165.87.137./24
10.165 .87.136 ./24
VLAN-Interface 1