Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-35
Note:
z
On an SSH server, you need to assign a public key to each SSH user using
publickey authentication.
z
Both
publickey
and
rsa-key
indicate specifying the publickey key. They are
implemented with the same method.
Related commands:
display ssh user-information
.
Examples
# Assign a public key named 127.0.0.1 to SSH client 1.
<Sysname>system-view
System View: return to User View with Ctrl+Z.
[Sysname]ssh user 1 assign publickey 127.0.0.1
# Display SSH user information.
[Sysname] display ssh user-information
Username Authentication-type User-public-key-name Service-type
1 publickey 127.0.0.1 stelnet
1.1.31 ssh user authentication-type
Syntax
ssh user username
authentication-type
{
all
|
password
|
password-publickey
|
publickey
|
rsa
}
undo ssh user username authentication-type
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.
all
: Specifies that the authentication mode for the SSH user can be either password
authentication or publickey authentication.
password
: Specifies the authentication mode for the SSH user as password
authentication.