The display ssh server status command displays the global configuration of the SSH server.
The display ssh server session command displays the current session of the SSH server.
If a user logs in to the system using STelnet or transfers files using SFTP, you can specify session in this command to view information about current sessions on the SSH server.
If no session information is displayed after the display ssh server session command is run, you can specify status to view global configurations of the SSH server. This will help locate faults.
# Display the global configuration of the SSH server.
<sysname> display ssh server status SSH version : 2.0 SSH connection timeout : 60 seconds SSH server key generating interval : 2 hours SSH Authentication retries : 5 times SFTP IPv4 server :Enable SFTP IPv6 server :Enable Stelnet IPv4 server :Enable Stelnet IPv6 server :Enable Scp IPv4 server :Enable Scp IPv6 server :Enable SSH server source :0.0.0.0 ACL4 number :0 ACL6 number :0
# Display the current session of the SSH server.
<sysname> display ssh server session
Session 1:
Conn : VTY 0
Version : 2.0
State : started
Username : client001
Retry : 1
CTOS Cipher : aes128-cbc
STOC Cipher : aes128-cbc
CTOS Hmac : hmac-sha1-96
STOC Hmac : hmac-sha1-96
CTOS Compress : none
STOC Compress : none
Kex : diffie-hellman-group1-sha1
Public Key : rsa
Service Type : sftp
Authentication Type : password
Item |
Description |
|---|---|
SSH version/Version |
Protocol version of the SSH session |
SSH connection timeout |
Interval of SSH server authentication, in seconds |
SSH server key generating interval |
Interval at which an SSH server key is generated, in hours |
SSH Authentication retries/Retry |
Number of times establishing the SSH session was retried |
SSH server source |
Source address of the SSH server |
Conn |
Interface of the VTY terminal used by the SSH session |
State |
Status of the SSH session |
User-name |
User name of the SSH server |
CTOS Cipher |
Name of the encryption algorithm from the client to the server |
STOC Cipher |
Name of the encryption algorithm from the server to the client |
CTOS Hmac |
Name of the Hmac algorithm from the client to the server |
STOC Hmac |
Name of the Hmac algorithm from the server to the client |
CTOS Compress |
Name of the compress algorithm for packets sent from the client to the server |
STOC Compress |
Name of the compress algorithm for packets sent from the server to the client |
Kex |
Name of the key exchange algorithm |
Public Key |
Type of the public key for the SSH session, including Elliptic Curves Cryptography (ECC), Revest-Shamir-Adleman Algorithm (RSA) and Digital Signature Algorithm (DSA) |
Service Type |
SSH user service mode, including sftp and stelnet |
Authentication Type |
SSH user authentication mode, including password, RSA, password-rsa, DSA, password-dsa, ECC, password-ecc, and all |