H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – SSH
H3C S7500E Series Ethernet Switches Chapter 1 SSH Configuration
1-15
To do… Use the command… Remarks
Display the mappings
between host public keys and
SSH servers saved on a client
display ssh server-info
Available in any
view
Display information about a
specified or all SSH users on
the SSH server
display ssh
user-information
[ username ]
Available in any
view
1.5 SSH Server Configuration Examples
1.5.1 When Using Password Authentication
I. Network requirements
z The host (SSH client) and the switch (SSH server) are directly connected through
the Ethernet interfaces.
z The host runs SSH client software to securely log on to the switch for
configuration.
z Password authentication is used.
II. Network diagram
SSH client SSH server
Host Switch
192.168.1.56/24
Vlan-int1
192.168.1.40/24
Figure 1-2 SSH server configuration (using password authentication)
III. Configuration procedure
Configure the SSH server
# Generate an RSA key pair and enable SSH server.
<Switch> system-view
[Switch] public-key local create rsa
[Switch] ssh server enable
# Configure an IP address for VLAN-interface 1, which the SSH client will use as the
destination for SSH connection.
[Switch] interface vlan-interface 1
[Switch-Vlan-interface1] ip address 192.168.1.40 255.255.255.0
[Switch-Vlan-interface1] quit
# Set the authentication mode for the user interface to AAA.
[Switch] user-interface vty 0 4