xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
617 
 
Format 
config ssh user <username 15> authmode [hostbased [hostname <domain_name 32> | 
hostname_IP <domain_name 32> [<ipaddr> | <ipv6addr>]] | password | publickey] 
 
Parameters 
user - Specify the user name. 
<username 15> - Enter the user name used here. This name can be up to 15 characters long. 
hostbased - Specify user authentication method. 
hostname - Specify host domain name. 
<domain_name 32> - Enter the domain name here. This name can be up to 32 characters 
long. 
hostname_IP - Specify host domain name and IP address. 
<domain_name 32> - Specify host name if configuring Host-based method. 
<ipaddr> - Specify host IP address if configuring Host-based method. 
<ipv6addr> - Specify host IPv6 address if configuring Host-based method. (EI Mode Only) 
password - Specify user authentication method. 
publickey - Specify user authentication method. 
 
Restrictions 
Only Administrator-level users can issue this command. 
 
Example 
To update user “test” authentication method: 
DGS-3120-24TC:admin# config ssh user test authmode publickey 
Command: config ssh user test authmode publickey 
 
Success. 
 
 
67-6  show ssh user 
Description 
This command is used to show the SSH user information. 
 
Format 
show ssh user authmode 
 
Parameters 
None. 
 
Restrictions 
Only Administrator-level users can issue this command.