H3C S7500 Series Ethernet Switches Release 3135 DHCP Configuration Examples
SSH Configuration Examples
H3C S7500 Series Ethernet Switches Release 3135 Chapter 2 SSH Configuration Commands
2-4
III. Configuring the client RSA public key manually
Table 2-4 Configure the client RSA public key manually
Operation Command Description
ssh
authenticatio
n-type
default rsa
Specify the
default
authentication
type for all
SSH users
ssh user
username
Create an SSH user
and specify an
authentication type
Create an
SSH user, and
specify an
authentication
type for it
ssh user
username
authenticatio
n-typ rsa
Use either command.
By default, the
authentication type is
password.
Note that: If both
commands are used and
different authentication
types are specified, the
authentication type
specified with the ssh
user
authentication-type
command takes
precedence.
Enter public key view
rsa peer-public-key keyname
Required
Enter public key edit
view
public-key-code begin
—
Configure the client
RSA public key
Enter the content of the RSA
public key
The content must be a
hexadecimal string that is
generated randomly by
the SSH-supported client
software and coded
compliant to PKCS.
Spaces and carriage
returns are allowed
between characters.
Return from public
key code view to
public key view
public-key-code end
When you exit public key
code view, the system
automatically saves the
public key.
Return from public
key view to system
view
peer-public-key end
—
Assign a public key to
an SSH user
ssh user username assign
rsa-key keyname
Required
If you issue this
command multiple times,
the last command
overrides the previous
ones