SSH Server
Configuration
Examples
When Using Password
Authentication
To do...
Display the mappings between host
public keys and SSH servers saved on
a client
Display information about a specified
or all SSH users on the SSH server
Network requirements
As shown in Figure 331, a local SSH connection is established between the
■
host (SSH client) and the switch (SSH server) for secure data exchange.
Password authentication is required.
■
Network diagram
Figure 331 Network diagram for SSH server configuration (using password
authentication)
SSH client
192.168.0.2/24
Host
Configuration procedure
Configure the SSH server
# Generate RSA and DSA key pairs and enable the SSH server.
<Switch> system-view
[Switch] public-key local create rsa
[Switch] public-key local create dsa
[Switch] ssh server enable
# Configure an IP address for VLAN interface 1. This address will serve as the
destination for the SSH client in connecting the server.
[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
[Switch-ui-vty0-4] authentication-mode scheme
# Enable the user interface to support SSH.
[Switch-ui-vty0-4] protocol inbound ssh
[Switch-ui-vty0-4] quit
SSH Server Configuration Examples
Use the command...
display ssh server-info
display ssh
user-information
[ username ]
SSH server
Vlan -int1
192 .168 .0.1/24
Switch
1119
Remarks
Available in any view
Available in any view
Need help?
Do you have a question about the Switch 4800G 24-Port and is the answer not in the manual?