Download 3Com 4200G Switch User Manual

Transcript
300
CHAPTER 32: SSH CONFIGURATION GUIDE
Configuring SFTP
Network Diagram
Figure 101 Network diagram for configuring SFTP
SSH server
SSH client
Vlan -int1
10 .165 .87.136 /24
Vlan -int1
10.165.87.137/24
Switch B
Networking and
Configuration
Requirements
Switch A
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.
Applicable Products
Configuration Procedure
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
■
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.
[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.