SSH Server Configuration Examples 1119SSH ServerConfigurationExamplesWhen Using PasswordAuthenticationNetwork requirements■ As shown in Figure 331, a local SSH connection is established between thehost (SSH client) and the switch (SSH server) for secure data exchange.■ Password authentication is required.Network diagramFigure 331 Network diagram for SSH server configuration (using passwordauthentication)Configuration procedureConfigure the SSH server# Generate RSA and DSA key pairs and enable the SSH server. 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 thedestination 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] quitDisplay the mappings between hostpublic keys and SSH servers saved ona clientdisplay ssh server-info Available in any viewDisplay information about a specifiedor all SSH users on the SSH serverdisplay sshuser-information[ username ]Available in any viewTo do… Use the command… RemarksSSH client SSH serverHost Switch192.168.0.2/24 Vlan -int1192 .168 .0.1/24