Configuring the Switch to Act as the SSH Client and Use Password Authentication 291
[3Com-ui-vty0-4] protocol inbound ssh
[3Com-ui-vty0-4] quit
# Create local user client001, and set the authentication password to abc, protocol type to SSH, and command privilege level to 3 for the client.
[3Com] local-user client001
[3Com-luser-client001] password simple abc
[3Com-luser-client001] service-type ssh level 3
[3Com-luser-client001] quit
# Specify the authentication method of user client001 as password.
[3Com] ssh user client001 authentication-type password
Configure Switch A
# Create a VLAN interface on the switch and assign an IP address for it. This address will serve as the SSH client’s address for SSH connection.
<3Com> system-view
[3Com] interface vlan-interface 1
[3Com-Vlan-interface1] ip address 10.165.87.137 255.255.255.0
[3Com-Vlan-interface1] quit
# Establish a connection to the server 10.165.87.136.
[3Com] ssh2 10.165.87.136
Username: client001
Trying 10.165.87.136 ...
Press CTRL+K to abort
Connected to 10.165.87.136 ...
The Server is not authenticated. Do you continue to access it?(Y/N):y
Do you want to save the server’s public key?(Y/N):n
Enter password:
**********************************************************************
* Copyright(c) 2004-2007 Hangzhou 3Com Tech. Co., Ltd. All rights reserved.*
* Without the owner’s prior written consent, *
* no decompiling or reverse-switch fabricering shall be allowed. *
**********************************************************************
<3Com>
Complete Configuration Configure Switch B
#
local-user client001
password simple abc
service-type ssh
level 3
#
interface Vlan-interface1
ip address 10.165.87.136 255.255.255.0
#
ssh user client001 authentication-type password
ssh user client001 service-type stelnet
#
user-interface vty 0 4