2195

<Sysname> system-view

[Sysname] ssh server rekey-interval 3

ssh user

Syntax 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-publickeypublickey } assign publickey keyname work-directorydirectory-name }

undo ssh user username

View System view

Parameter 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-directorydirectory-name: Specifies a work folder for an SFTP user. The folder name is a string of 1 to 135 characters.

Description Use the ssh user command to create an SSH user and specify the service type and authentication method.

Use the undo ssh user assign rsa-keycommand to delete the SSH user.

Use the undo ssh user username command to delete a user.

Note that:

Page 2195
Image 2195
3Com MSR 50, MSR 30 manual Ssh user, Undo ssh user username, 2195