HP A6600 Configuration Manual page 340

Hide thumbs Also See for A6600:
Table of Contents

Advertisement

# Configure an IP address for interface GigabitEthernet 1/0/1, which the SSH client uses as the
destination for SSH connection.
[RouterB] interface GigabitEthernet 1/0/1
[RouterB-GigabitEthernet1/0/1] ip address 10.165.87.136 255.255.255.0
[RouterB-GigabitEthernet1/0/1] quit
# Set the authentication mode for the user interfaces to AAA.
[RouterB] user-interface vty 0 4
[RouterB-ui-vty0-4] authentication-mode scheme
# Enable the user interfaces to support SSH.
[RouterB-ui-vty0-4] protocol inbound ssh
# Set the user command privilege level to 3.
[RouterB-ui-vty0-4] user privilege level 3
[RouterB-ui-vty0-4] quit
# Import the peer public key from the file key.pub.
[RouterB] 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.
[RouterB] ssh user client002 service-type stelnet authentication-type publickey assign
publickey Router001
Establish a connection between the SSH client and the SSH server.
3.
# Establish an SSH connection to the server (10.165.87.136).
<RouterA> 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
Then, you can log in to Router B successfully.
328

Advertisement

Table of Contents
loading

Table of Contents