1-8assign publickey keyname: Assigns an existing public key to an SSH user. keyname indicates thename of the client public key and is a string of 1 to 64 characters.work-directory directory-name: Specifies the working directory for an SFTP user. directory-nameindicates the name of the working directory and is a string of 1 to 135 characters.DescriptionUse the ssh user command to create an SSH user and specify the service type and authenticationmethod.Use the undo ssh user command to delete an SSH user.Note that:z For a publickey authentication user, you must configure the username and the public key on thedevice. For a password authentication user, you can configure the account information on eitherthe device or the remote authentication server such as a RADIUS server.z If you use the ssh user command to configure a public key for a user who has already had a publickey, the new one overwrites the old one.z You can change the authentication method and public key of an SSH user when the user iscommunicating with the SSH server. However, your changes take effect only after the user logs outand logs in again.z If an SFTP user has been assigned a public key, it is necessary to set a working folder for the user.z The working folder of an SFTP user is subject to the user authentication method. For a user usingonly password authentication, the working folder is the AAA authorized one. For a user using onlypublickey authentication or using both publickey authentication and password authentication, theworking folder is the one set by using the ssh user command.Related commands: display ssh user-information.Examples# Create an SSH user named user1, setting the service type as sftp, the authentication method aspublickey, the working directory of the SFTP server as flash, and assigning a public key named key1to the user. system-view[Sysname] ssh user user1 service-type sftp authentication-type publickey assign publickeykey1 work-directory flash:SSH2.0 Client Configuration Commandsdisplay ssh client sourceSyntaxdisplay ssh client sourceViewAny viewDefault Level1: Monitor level