HP 5120 SI Series Security Configuration Manual page 277

Hide thumbs Also See for 5120 SI Series:
Table of Contents

Advertisement

# Set the user command privilege level to 3.
[SwitchB-ui-vty0-15] user privilege level 3
[SwitchB-ui-vty0-15] quit
# Import the peer public key from the file key.pub.
[SwitchB] public-key peer Switch001 import sshkey key.pub
# Specify the authentication method for user client002 as publickey, and assign the public key
Switch001 to the user.
[SwitchB] ssh user client002 service-type stelnet authentication-type publickey assign
publickey Switch001
3.
Establish a connection between the SSH client and the SSH server
# Establish an SSH connection to the server—10.165.87.136.
<SwitchA> ssh2 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
Later, you will find that you have logged in to Switch B successfully.
265

Advertisement

Table of Contents
loading

Table of Contents