ssh user
Syntax
View
Parameter
Description
<Sysname> system-view
[Sysname] ssh server rekey-interval 3
ssh user username service-type stelnet authentication-type { password | { any |
password-publickey | publickey } assign publickey keyname }
ssh user username service-type { all | sftp } authentication-type { password | { any |
password-publickey | publickey } assign publickey keyname work-directory
directory-name }
undo ssh user username
System view
username: SSH username, a string of 1 to 80 characters.
service-type: Specifies the service type of an SSH user, which can be one of the
following:
all: Specifies both secure Telnet and secure FTP.
■
sftp: Specifies the service type as secure FTP.
■
stelnet: Specifies the service type of secure Telnet.
■
authentication-type: Specifies the authentication method of an SSH user,
■
which can be one the following:
password: Performs password authentication.
■
any: Performs either password authentication or publickey authentication. The
■
client tries publickey authentication first.
password-publickey: Performs both password authentication and publickey
■
authentication. A client running SSH1 client only needs to pass either type of
authentication while a client running SSH2 client must pass both types of
authentication to log in.
publickey: Performs publickey authentication.
■
assign publickey keyname: Assigns an existing public key for an SSH user. The
key name is a string of 1 to 64 characters.
work-directory directory-name: Specifies a work folder for an SFTP user. The
folder name is a string of 1 to 135 characters.
Use the
command to create an SSH user and specify the service type and
ssh user
authentication method.
Use the
undo ssh user assign rsa-key
Use the
undo ssh user
Note that:
command to delete the SSH user.
username command to delete a user.
2195