H3C Technologies H3C SecPath F1000-E User Manual
Page 185
174
# Set the user command privilege level to 3.
[Router-ui-vty0-4] user privilege level 3
[Router-ui-vty0-4] quit
# Import the peer public key from the file key.pub.
[Router] public-key peer Router001 import sshkey key.pub
# Specify the authentication method for user client002 as publickey, and assign the public key
Router001 to the user.
[Router] ssh user client002 service-type stelnet authentication-type publickey assign
publickey Router001
3.
Establish a connection between the SSH client and the SSH server
# Establish an SSH connection to the server (10.165.87.136).
Username: client002
Trying 10.165.87.136 ...
Press CTRL+K to abort
Connected to 10.165.87.136 ...
The Server is not authenticated. Continue? [Y/N]:y
Do you want to save the server public key? [Y/N]:n
Then, you can log in to Router successfully.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS