3Com Switch 8800 Advanced Software V5 Configuration Guide

970 CHAPTER 73: SFTP SERVICE
SFTP Configuration
Examples
Network requirements
As shown in Figure 294, an SSH connection is established between Switch A and
Switch B. Switch A, an SFTP client, uses the username client001 and password
aabbcc to login to Switch B for file management and file transfer.
Network diagram
Figure 294 Network diagram for SFTP configuration (on routers)
Configuration procedure
1 Configure the SFTP server (Switch B)
# Generate an RSA host key pair and server key pair, and enable the SSH server.
<SwitchB> system-view
[SwitchB] rsa local-key-pair create
[SwitchB] ssh server enable
# Assign an IP address to the Vlan-interface 1. The client will be connected to the
SSH server through this address.
[SwitchB] interface vlan-interface 1
[SwitchB-Vlan-interface1] ip address 192.168.0.1 255.255.255.0
[SwitchB-Vlan-interface1] quit
# Configure the SSH client to log into the user interface through AAA
[SwitchB] user-interface vty 1
[SwitchB-ui-vty1] authentication-mode scheme
# Set the remote user login protocol on the switch to SSH.
[SwitchB-ui-vty1] protocol inbound ssh
[SwitchB-ui-vty1] quit
# Create a local user named "client001".
[SwitchB] local-user client001
[SwitchB-luser-client001] password simple aabbccddeeff
[SwitchB-luser-client001] service-type ssh
[SwitchB-luser-client001] quit
# Configure the password authentication mode for the SSH user. Configure the
authentication timeout time, number of attempts, and server key update interval
as default values.
[SwitchB] ssh user client001 authentication-type password
SFTP server SFTP client
Switch B Switch A
Vlan-int1
192.168.0.1/24
Vlan-int1
192.168.0.2/24