3com 8807 Reference Guide
SSH Server Configuration Commands
955
Example
# Assign public key1 for user zhangsan.
<SW8800> system-view
System View: return to User View with Ctrl+Z.
[SW8800] ssh user zhangsan assign rsa-key key1
ssh user
authentication-type
Syntax
ssh user username authentication-type { password | rsa |
password-publickey | all }
password-publickey | all }
undo ssh user username authentication-type
View
System view
Parameter
password: Forces the user’s authentication mode to password authentication.
rsa: Forces the user’s authentication mode to RSA public key authentication.
password-publickey: Forces the user’s authentication mode to password
authentication plus RSA public key authentication.
authentication plus RSA public key authentication.
all: Specifies that the user’s authentication mode can be either password
authentication or public authentication.
authentication or public authentication.
Description
Use the ssh user authentication-type command to specify an authentication
mode for a user.
mode for a user.
Use the undo ssh user authentication-type command to restore the user
authentication mode to NULL, namely, the unable-to-login mode.
authentication mode to NULL, namely, the unable-to-login mode.
The new authentication mode takes effect at the next login.
By default, no login authentication mode is specified, that is, SSH users are unable
to login.
to login.
For a new user, you must specify an authentication mode; otherwise, the new user
will not be able to log in.
will not be able to log in.
Related command: display ssh user-information.
Example
# Specify the authentication mode of user zhangsan to password authentication.
<SW8800> system-view
System View: return to User View with Ctrl+Z.
[SW8800] ssh user zhangsan authentication-type password
ssh authentication-type
default
Syntax
ssh authentication-type default { password | rsa | all | password-publickey }