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