The display ssh server-info command displays the binding between SSH servers and RSA, DSA, or ECC public keys when the current device works as an SSH client.
When the SSH client needs to authenticate the server, the server public key saved in the local host is used to authenticate the connected SSH server. If the authentication fails, you can run the display ssh server-info command to check that the server public key is correct.
# Display all bindings between the SSH servers and public keys on the SSH client.
<HUAWEI> display ssh server-info
Server Name(IP) Server Public Key Type Server public key name ______________________________________________________________________________ 192.168.50.207 RSA 192.168.50.207 192.168.50.204 DSA 192.168.50.204 192.168.50.208 ECC 192.168.50.208
Item |
Description |
---|---|
Server Name(IP) |
Host name of the SSH server. |
Server Public Key Type |
Type of the public key on the SSH server. |
Server public key name |
Name of the public key on the SSH server. |