To do...
Use the command...
Remarks
Enter system iew
system-view
—
v
Import the public key from a
public-key peer keyname
Required
public key file
import sshkey filename
Assigning a Public Key to an SSH User
This configuration task is unnecessary if the SSH user’s authenticatio
password
.
n mode is
For the
publickey
authentication mode, you must specify the clie
n the server for
uthentication.
Follow these steps to assign a public key for an SSH user:
nt’s public key o
a
To do...
Use the command...
Remarks
Enter system view
system-view
—
Assign a public key to an
Required
If you issue this command
SSH
user
ssh user
username
assign
multiple times, the last
command overrides the
previous ones.
publickey
keyname
Exporting the Host Public Key to
I
ring the Public Key of a Client on the Server
a File
n tasks of
Configu
or
Configuring whether first-time
uthentication is supported
a
, an SSH client’s or an SSH server's host public key can be imported from a
c key file. This task allows you to export the host public key to a file on the client or server device
irs generated.
Follow these steps to export the RSA host public key:
publi
with key pa
To do...
Use the command...
Remarks
Enter system view
system-view
—
Export the RSA host public key
to a specified file
public-key local export rsa
{
openssh
|
ssh1
|
ssh2
}
[
filename
]
Required