Configuring an ssh user – H3C Technologies H3C S7500E Series Switches User Manual
Page 212
11-8
Importing a client public key from a public key file
Follow these steps to import a 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
For more information about client side public key configuration and the relevant commands, see
Public Key Configuration in the Security Configuration Guide.
Configuring an SSH User
This configuration allows you to create an SSH user and specify the service type and authentication
mode.
Follow these steps to configure an SSH user and specify the service type and authentication mode:
To do…
Use the command…
Remarks
Enter system view
system-view
—
For Stelnet
users
ssh user username service-type
stelnet authentication-type
{ password | { any |
password-publickey |
publickey } assign publickey
keyname }
Create an SSH
user, and
specify the
service type
and
authentication
mode
For all users or
SFTP users
ssh user username service-type
{ all | sftp } authentication-type
{ password | { any |
password-publickey |
publickey } assign publickey
keyname work-directory
directory-name }
Required
Use either command.