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...
Enter system view
Display the RSA key on the screen in
a specified format or export it to a
specified file
Follow these steps to export the DSA public key:
To do...
Enter system view
Display the DSA key on the
screen in a specified format or
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...
Enter system view
Specify the default
authentication type for all SSH
users
Create an SSH user, and
specify an authentication type
for it
Use the command...
system-view
public-key local export rsa
{ openssh | ssh1 | ssh2 }
[ filnename ]
Use the command...
system-view
public-key local export dsa
{ openssh | ssh2 } [ filnename ]
Use the command...
system-view
ssh authentication-type
default { all | password |
password-publickey |
publickey | rsa }
ssh user username
ssh user username
authentication-type { all |
password |
password-publickey |
publickey | rsa }
1-7
Remarks
—
Required
Remarks
—
Required
Remarks
—
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.