display ssh server
Syntax
display ssh server { session | status } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
session: Displays the session information of the SSH server.
status: Displays the status information of the SSH server.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration 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 on an SSH server to display SSH server status information or session information.
Related commands: ssh server authentication-retries, ssh server authentication-timeout, ssh server compatible-ssh1x enable, ssh server enable, and ssh server rekey-interval.
Examples
# Display SSH server status information.
<Sysname> display ssh server status SSH Server: Disable SSH version : 1.99 SSH authentication-timeout : 60 second(s) SSH server key generating interval : 0 hour(s) SSH Authentication retries : 3 time(s) SFTP Server: Disable SFTP Server Idle-Timeout: 10 minute(s)
Table 39: Command output
Field | Description |
---|---|
SSH Server | Whether the SSH server function is enabled. |
SSH version | SSH protocol version. When the SSH supports SSH1, the protocol version is 1.99. Otherwise, the protocol version is 2.0. |
SSH authentication-timeout | Authentication timeout period. |
SSH server key generating interval | SSH server key pair update interval. |
SSH Authentication retries | Maximum number of authentication attempts for SSH users. |
SFTP Server | Whether the SFTP server function is enabled. |
SFTP Server Idle-Timeout | SFTP connection idle timeout period. |
# Display the SSH server session information.
<Sysname> display ssh server session Conn Ver Encry State Retry SerType Username VTY 0 2.0 DES Established 0 SFTP client001
Table 40: Command output
Field | Description |
---|---|
Conn | Connected VTY channel. |
Ver | SSH server protocol version. |
Encry | Encryption algorithm. |
State | Status of the session:
|
Retry | Number of authentication attempts. |
SerType | Service type (SCP, SFTP, and Stelnet). |
Username | Name of a user for login. |