1-7
Exporting the RSA or DSA Public Key
You can display the generated RSA or DSA key pair on the screen in a specified f ormat, 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
a specified format or export it to a
specified file
public-key local export rsa
{ openssh | ssh1 | ssh2 }
[ filnename ] Required
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
screen in a specified format or
export it to a specified file
public-key local export dsa
{ openssh | ssh2 } [ filnename ]Required
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
default { all | password |
password-publickey |
publickey | rsa }
Specify the default
authentication type for all SSH
users
ssh user username
Create an SSH user, and
specify an authentication type
for it
ssh user username
authentication-type { all |
password |
password-publickey |
publickey | rsa }
Use either command.
By default, no SSH user is
created and no authentication
type is specified.
Note that: If both commands
are used and different
authentication types are
specified, the authentication
type specified with the ssh
user authentication-type
command takes precedence.