display ssh server

Use display ssh server on an SSH server to display the SSH server status or sessions.

Syntax

display ssh server { session | status }

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

session: Specifies the SSH server sessions.

status: Specifies the SSH server status.

Examples

# Display the SSH server status.

<Sysname> display ssh server status
 Stelnet server: Disable
 SSH version : 2.0
 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)
 NETCONF server: Disable
 SCP server: Disable
 SSH Server PKI domain name: aaa

Table 55: Command output

Field

Description

Stelnet server

Whether the Stelnet server is enabled.

SSH version

SSH protocol version.

When the SSH supports SSH1, the protocol version is 1.99. Otherwise, the protocol version is 2.

SSH authentication-timeout

Authentication timeout timer.

SSH server key generating interval

Minimum interval for updating the RSA server key pair.

SSH authentication retries

Maximum number of authentication attempts for SSH users.

SFTP server

Whether the SFTP server is enabled.

SFTP server Idle-Timeout

SFTP connection idle timeout timer.

NETCONF server

Whether NETCONF over SSH is enabled.

SCP server

Whether the SCP server is enabled.

SSH Server PKI domain name

Name of the PKI domain specified for the SSH server.

# Display the SSH server sessions.

<Sysname> display ssh server session
UserPid   SessID Ver   Encrypt    State          Retries  Serv     Username
 184       0     2.0   aes128-cbc Established    1        Stelnet  abc@123

Table 56: Command output

Field

Description

UserPid

User process ID.

SessID

Session ID.

Ver

Protocol version of the SSH server.

Encrypt

Encryption algorithm used on the SSH server.

State

Session state:

  • Init—Initialization.

  • Ver-exchange—Version negotiation.

  • Keys-exchange—Key exchange.

  • Auth-request—Authentication request.

  • Serv-request—Session service request.

  • Established—The session is established.

  • Disconnected—The session is terminated.

Retries

Number of authentication failures.

Serv

Service type:

  • SCP.

  • SFTP.

  • Stelnet.

  • NETCONF.

Username

Username that the client uses to log in to the server.