
1-30
the string before the @ sign) cannot be more than 55 characters, and the domain name part cannot be
more than 128 characters.
Description
Use the
ssh user
command to create an SSH user.
Use the
undo ssh user
to delete a specified SSH user.
An SSH user created with this command uses the default authentication type specified by the
ssh
authentication-type default
command. If no default authentication type is specified for SSH users, you
need to use the
ssh user authentication-type
command to create an SSH user and specify an
authentication mode for the user.
An SSH user is created on an SSH server for the purpose of specifying the authentication type, the SSH
service type, and the public key for the SSH user. An existing SSH user will be removed automatically if
it has none of the authentication type, the SSH service type, and the public key configured.
Related commands:
ssh authentication-type default
,
ssh user authentication-type
.
Examples
# Specify the default authentication type as password authentication. Create an SSH user with the
name “abc”.
<Sysname> system-view
Enter system view, return to user view with Ctrl+Z.
[Sysname] ssh authentication-type default password
[Sysname] ssh user abc
# Display SSH user information.
[Sysname] display ssh user-information
Username Authentication-type User-public-key-name Service-type
abc password null stelnet
ssh user assign
Syntax
ssh user
username
assign
{
publickey
|
rsa-key
}
keyname
undo ssh user username assign
{
publickey
|
rsa-key
}
View
System view