H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – SSH
H3C S7500E Series Ethernet Switches Chapter 1 SSH Configuration
1-9
To do… Use the command… Remarks
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
II. 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
1.2.6 Configuring an SSH User
This configuration allows you to create an SSH user and specify the service type and
authentication method.
Follow these steps to configure an SSH user:
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
authenticati
on method
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.