406 CHAPTER 36: SSH CONFIGURATIONDisplaying SSHConfigurationAfter the above configuration, you can execute the display command in any viewto display the configuration information and running status of SSH, so as to verifyyour configuration.SSH ConfigurationExamplesWhen the Switch Acts asthe SSH Server and theAuthentication Type isPasswordNetwork requirementsAs shown in Figure 130, establish an SSH connection between the host (SSHClient) and the switch (SSH Server) for secure data exchange. The host runsSSH2.0 client software. Password authentication is required.Network diagramFigure 130 Network diagram of SSH server configuration using password authenticationConfiguration procedure■ Configure the SSH server# Create a VLAN interface on the switch and assign an IP address, which theSSH 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] quitn Generating the RSA and DSA key pairs on the server is prerequisite to SSH login.Table 317 Display SSH configurationOperation Command DescriptionDisplay host and server publickeysdisplay rsa local-key-pairpublicYou can execute the displaycommand in any view.Display client RSA publickey(s)display rsa peer-public-key[ brief | name keyname ]Display local public key(s) display public-key local {dsa | rsa } publicDisplay remote public key(s) display public-key peer [brief | name pubkey-name ]Display SSH status and sessioninformationdisplay ssh server { session |status }Display SSH user information display sshuser-information [ username]Display the mappingsbetween host public keys andSSH servers saved on a clientdisplay ssh server-infoSwitchSSH Client192 .168 .0 .2/24VLAN-Interface 1192.168.0.1/24