xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
618 
 
Example 
To show user information about SSH configuration: 
DGS-3120-24TC:admin# show ssh user authmode 
Command: show ssh user authmode 
 
Current Accounts 
Username          AuthMode             HostName            HostIP 
-------------  -------------        ------------      ------------- 
test              Public Key 
alpha             Host-based           alpha-local        172.18.61.180 
beta              Host-based           beta-local          3000::105 
Total Entries : 3 
 
 
67-7  config ssh server 
Description 
This command is used to configure the SSH server general information. 
 
Format 
config ssh server {maxsession <int 1-8> | contimeout <sec 120-600> | authfail <int 2-20> | 
rekey [10min | 30min | 60min | never] | port <tcp_port_number 1-65535>} 
 
Parameters 
maxsession - (Optional) Specify SSH server maximum session at the same time, maximum 8 
sessions. 
<int 1-8> - Enter the maximum session value here. This value must be between 1 and 8. 
contimeout - (Optional) Specify SSH server connection time-out, in the unit of second. 
<sec 120-600> - Enter the connection time-out value here. This value must be between 120 
authfail - (Optional) Specify user maximum fail attempts. 
<int 2-20> - Enter the user maximum fail attempts value here. This value must be between 2 
rekey - (Optional) Specify time to re-generate session key. There are 10 minutes, 30 minutes, 60 
minutes and never for the selection, which the never means do NOT re- generate session key 
10min - Specify that the re-generate session key time will be 10 minutes. 
30min - Specify that the re-generate session key time will be 30 minutes. 
60min - Specify that the re-generate session key time will be 60 minutes. 
never - Specify that the re-generate session key time will be set to never. 
port - (Optional) Specify the TCP port used to communication between SSH client and server. 
The default value is 22. 
<tcp_port_number 1-65535> - Enter the TCP port number here. This value must be between 
 
Restrictions 
Only Administrator, Operator and Power-User level users can issue this command.