H3C Technologies H3C SecPath F1000-E User Manual
Page 74

18
[Device-GigabitEthernet0/1] quit
# Set the authentication mode for the user interfaces to AAA.
[Device] user-interface vty 0 4
[Device-ui-vty0-4] authentication-mode scheme
# Enable the user interfaces to support SSH.
[Device-ui-vty0-4] protocol inbound ssh
# Set the user command privilege level to 3.
[Device-ui-vty0-4] user privilege level 3
[Device-ui-vty0-4] quit
# Import the client’s public key from file key.pub and name it Device001.
[Device] public-key peer Device001 import sshkey key.pub
# Specify the authentication method for user client002 as publickey, and assign the public key
Device001 to the user.
[Device] ssh user client002 service-type stelnet authentication-type publickey assign
publickey Device001
Step3
Establish a connection between the SSH client and the SSH server.
# Specify the private key file and establish a connection to the SSH server
Launch PuTTY.exe to enter the following interface. In the Host Name (or IP address) text box, enter
the IP address of the server (192.168.1.40).
Figure 9 SSH client configuration interface 1)