Displaying and maintaining SSH
Task
Display the source IP address or
interface set for the SFTP client.
Display the source IP address or
interface information on an SSH
client.
Display SSH server status
information or session information
on an SSH server.
Display the mappings between
SSH servers and their host public
keys on an SSH client.
Display information about SSH
users on an SSH server.
Display the public keys of the local
key pairs.
Display the public keys of the SSH
peers.
For more information about the display public-key local and display public-key peer commands, see
Security Command Reference.
SSH server configuration examples
When the switch acts as a server for password authentication
Network requirements
As shown in
Configure an SSH user on the switch so that the host can securely log in to the switch after passing
password authentication. Configure a username and password for the user on the switch.
Figure 50 Network diagram
Configuration procedure
Configure the SSH server:
1.
Command
display sftp client source [ | { begin
| exclude | include }
regular-expression ]
display ssh client source [ | { begin
| exclude | include }
regular-expression ]
display ssh server { status |
session } [ | { begin | exclude |
include } regular-expression ]
display ssh server-info [ | { begin |
exclude | include }
regular-expression ]
display ssh user-information
[ username ] [ | { begin | exclude |
include } regular-expression ]
display public-key local { dsa |
rsa } public [ | { begin | exclude |
include } regular-expression ]
display public-key peer [ brief |
name publickey-name ] [ | { begin
| exclude | include }
regular-expression ]
Figure
50, a host (the SSH client) and a switch (the SSH server) are directly connected.
188
Remarks
Available in any view
Available in any view
Available in any view
Available in any view
Available in any view
Available in any view
Available in any view