Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-34
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
1.1.30 ssh user assign
Syntax
ssh user
username
assign
{
publickey
|
rsa-key
}
keyname
undo ssh user username assign
{
publickey
|
rsa-key
}
View
System view
Parameters
username
: SSH user name, a string of 1 to 184 characters. It cannot contain any of
these characters: slash (/), backslash (\), colon (:), asterisk (*), question mark (?), less
than sign (<), greater than sign (>), and the vertical bar sign (|). In addition, the @ sign
can appear up to once, the username part (that is, the string before the @ sign) cannot
be more than 55 characters, and the domain name part cannot be more than 128
characters.
keyname
: Name of a public key, a string of 1 to 64 characters.
Description
Use the
ssh user assign
command to assign an existing public key to a specified SSH
user.
Use the
undo ssh user assign
command to remove the association.
The public key of the client is subject to the one assigned last time.
The new public key takes effect when the user logs in next time.