3com 4210 User Manual
300
C
HAPTER
32: SSH C
ONFIGURATION
G
UIDE
Configuring SFTP
Network Diagram
Figure 101 Network diagram for configuring SFTP
Networking and
Configuration
Requirements
As shown in Figure 101, establish an SSH connection between the SFTP client
(Switch A) and the SFTP server (Switch B). Log in to Switch B with the username
client001 and password abc through Switch A to manage and transfer files.
(Switch A) and the SFTP server (Switch B). Log in to Switch B with the username
client001 and password abc through Switch A to manage and transfer files.
Applicable Products
Configuration Procedure
■
Configure the SFTP server (Switch B)
# Generate an RSA key pair.
<3Com>system-view
[3Com] rsa local-key-pair create
# Create a VLAN interface on the switch and assign an IP address for it. The SSH
client will use this address as the destination for SSH connection.
client will use this address as the destination for SSH connection.
[3Com] interface vlan-interface 1
[3Com-Vlan-interface1] ip address 192.168.0.1 255.255.255.0
[3Com-Vlan-interface1] quit
# Set the authentication mode for the user interfaces to AAA.
[3Com] user-interface vty 0 4
[3Com-ui-vty0-4] authentication-mode scheme
# Enable the user interfaces to support SSH.
[3Com-ui-vty0-4] protocol inbound ssh
[3Com-ui-vty0-4] quit
# Create a local user named client001.
[3Com] local-user client001
[3Com-luser-client001] password simple abc
[3Com-luser-client001] service-type ssh
[3Com-luser-client001] quit
# Configure the authentication method as password.
SSH server
SSH client
Switch B
Switch A
Vlan -int1
10 .165 .87.136 /24
10 .165 .87.136 /24
Vlan -int1
10.165.87.137/24
Product series
Software version
Hardware version
Switch 5500
Release V03.02.04
All versions
Switch 5500G
Release V03.02.04
All versions
Switch 4500
Release V03.03.00
All versions
Switch 4210
Release V03.01.00
All versions