187[SwitchA-pkey-public-key-key1]B32E810561C21621C73D6DAAC028F4B1585DA7F42519718CC9B09EEF0381840002818000AF995917[SwitchA-pkey-public-key-key1]E1E570A3F6B1C2411948B3B4FFA256699B3BF871221CC9C5DF257523777D033BEE77FC378145F2AD[SwitchA-pkey-public-key-key1]D716D7DB9FCABB4ADBF6FB4FDB0CA25C761B308EF53009F7101F7C62621216D5A572C379A32AC290[SwitchA-pkey-public-key-key1]E55B394A217DA38B65B77F0185C8DB8095522D1EF044B465E8716261214A5A3B493E866991113B2D[SwitchA-pkey-public-key-key1]485348[SwitchA-pkey-public-key-key1] peer-public-key end[SwitchA] quit# Establish an SSH connection to the server 192.168.1.40 and specify the host public key ofthe server. ssh2 192.168.1.40 publickey key1Username: client001client001@192.168.1.40's password:After you enter the correct password, you successfully log in to Switch B.Publickey authentication enabled Stelnet client configurationexampleNetwork requirementsAs shown in Figure 56, you can log in to Switch B through the Stelnet client that runs on Switch A and areassigned the user role network-admin for configuration management. Switch B acts as the Stelnet serverand uses publickey authentication and the DSA public key algorithm.Figure 56 Network diagramConfiguration procedureIn the server configuration, the client public key is required. Use the client software to generate a DSA keypair on the client before configuring the Stelnet server.1. Configure the Stelnet client:# Assign an IP address to VLAN-interface 2. system-view[SwitchA] interface vlan-interface 2[SwitchA-Vlan-interface2] ip address 192.168.1.56 255.255.255.0[SwitchA-Vlan-interface2] quit# Generate a DSA key pair.