Assigning a public key to an ssh user, Assigning a public key to an ssh user -10 – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 482

Advertising
background image

46-10

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

You can also use the following commands to configure the client’s RSA public key on the server.

Follow these steps to configure the client RSA public key manually:

To do…

Use the command…

Remarks

Enter system view

system-view

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

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 RSA public key from a
public key file

rsa peer-public-key keyname
import sshkey filename

Required

The result of the display rsa local-key-pair public command or the public key converted with the
SSHKEY tool contains no information such as the authentication type, so they cannot be directly used
as parameters in the public-key peer command. For the same reason, neither can the result of the

display public-key local rsa public

command be used in the rsa peer-public-key command directly.

Assigning a Public Key to an SSH User

Advertising