R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
198
Examples
# Display the source IP address or source interface of the SSH client.
<Sysname> display ssh client source
The source IP address you specified is 192.168.0.1
display ssh server-info
Syntax
display ssh server-info [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Getting Started Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ssh server-info on a client to display mappings between SSH servers and their host public
keys on an SSH client.
When an SSH client needs to authenticate the SSH server, it uses the locally saved public key of the
server for the authentication. If the authentication fails, you can use this command to check the public key
of the server saved on the client.
This command is also available on an SFTP client.
Related commands: ssh client authentication server.
Examples
# Display the mappings between host public keys and SSH servers saved on the client.
<Sysname> display ssh server-info
Server Name(IP) Server public key name
______________________________________________________
192.168.0.1 abc_key01
192.168.0.2 abc_key02
Table 46 Command output
Field Description
Server Name(IP) Name or IP address of the server
Server public key name Name of the host public key of the server