Operation Manual – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Configuration
1-13
To do...
Use the command...
Remarks
Return to public key view
from public key edit view
public-key-code end
—
Exit public key view and
return to system view
peer-public-key
end
—
Table 1-9
Follow these steps to import the RSA public key from a public key file:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Import the public key from
a public key file
public-key peer keyname
import sshkey filename
Required
1.3.8 Assigning a Public Key to an SSH User
Caution:
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.
Table 1-10
Follow these steps to assign a public key for an SSH user:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Assign a public key to an
SSH user
ssh user
username
assign
publickey
keyname
Required
If you issue this command
multiple times, the last
command overrides the
previous ones.
1.3.9 Exporting the RSA or DSA Public Key
You can display the generated RSA or DSA public key on the screen in a specified
format or export it to a specified file, so that you can configure the key at a remote end
when necessary.