300CHAPTER 32: SSH CONFIGURATION GUIDE

Configuring SFTP

Network Diagram

Figure 101 Network diagram for configuring SFTP

 

SSH server

 

SSH client

 

 

Vlan -int1

 

Vlan -int1

 

 

 

 

10 .165 .87.136 /24

10.165.87.137/24

 

 

 

 

Switch B

 

Switch A

 

 

Networking and

As shown in Figure 101, establish an SSH connection between the SFTP client

Configuration

(Switch A) and the SFTP server (Switch B). Log in to Switch B with the username

Requirements

client001 and password abc through Switch A to manage and transfer files.

Applicable Products

 

 

 

 

 

 

 

 

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

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.

[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.

Page 300
Image 300
3Com 5500, 4210 Configuring Sftp, # Create a local user named client001, # Configure the authentication method as password