Exporting the RSA or DSA Public Key

You can display the generated RSA or DSA key pair on the screen in a specified format, or export it to a specified file for configuring the key at a remote end.

Follow these steps to export the RSA public key:

To do…

Use the command…

Remarks

Enter system view

system-view

 

 

 

Display the RSA key on the screen in

public-key local export rsa

 

a specified format or export it to a

{ openssh ssh1 ssh2 }

Required

specified file

[ filnename ]

 

 

 

 

Follow these steps to export the DSA public key:

 

 

To do…

 

Use the command…

 

Remarks

 

 

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

 

 

 

 

Display the DSA key on the

 

public-key local export dsa

 

 

 

 

 

screen in a specified format or

 

 

Required

 

 

 

 

{ openssh ssh2 } [ filnename ]

 

 

 

 

export it to a specified file

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The DSA public key format can be SSH2 and OpenSSH, while the RSA public key format can be SSH1, SSH2 and OpenSSH.

Creating an SSH User and Specify an Authentication Type

This task is to create an SSH user and specify an authentication type for it. Specifying an authentication type for a new user is a must to get the user login.

Follow these steps to configure an SSH user and specify an authentication type for it:

 

 

To do…

 

Use the command…

 

Remarks

 

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

 

 

 

 

ssh authentication-type

 

Use either command.

 

 

Specify the default

 

default { all password

 

By default, no SSH user is

 

 

 

password-publickey

 

 

 

authentication type for all SSH

 

 

created and no authentication

 

 

 

publickey rsa }

 

 

 

users

 

 

type is specified.

 

 

 

 

 

 

 

 

 

ssh user username

 

Note that: If both commands

 

 

 

 

 

 

are used and different

 

 

 

 

ssh user username

 

 

 

 

 

 

authentication types are

 

 

Create an SSH user, and

 

authentication-type { all

 

specified, the authentication

 

 

specify an authentication type

 

password

 

type specified with the ssh

 

 

for it

 

password-publickey

 

user authentication-type

 

 

 

 

publickey rsa }

 

command takes precedence.

 

 

 

 

 

 

 

1-7

Page 504
Image 504
3Com WX3000 operation manual Exporting the RSA or DSA Public Key, Creating an SSH User and Specify an Authentication Type