Operation Manual – SSH
H3C S3610&S5510 Series Ethernet Switches
Chapter 2 SFTP Service
2-7
2.4 SFTP Configuration Example
I. Network requirements
As shown in
, an SSH connection is established between Switch A and
Switch B. Switch A, as an SFTP client, uses the username
client001
and password
aabbcc
to login to Switch B for file management and file transfer.
II. Network diagram
Figure 2-1
Network diagram for SFTP configuration
III. Configuration procedure
1)
Configure the SFTP server (Switch B)
# Generate an RSA key pair and enable SSH server.
<SwitchB> system-view
[SwitchB] public-key local create rsa
[SwitchB] ssh server enable
# Configure an IP address for VLAN-interface 1, which the SSH client uses as the
destination for SSH connection.
[SwitchB] interface Vlan-interface 1
[SwitchB-Vlan-interface1] ip address 192.168.0.1 255.255.255.0
[SwitchB-Vlan-interface1] quit
# Set the authentication method on the user interface to AAA.
[SwitchB] user-interface vty 0 4
[SwitchB-ui-vty0-4] authentication-mode scheme
# Set the user interface to support SSH.
[SwitchB-ui-vty0-4] protocol inbound ssh
[SwitchB-ui-vty0-4] quit
# Create local user
client001
.
[SwitchB] local-user client001
[SwitchB-luser-client001] password simple aabbcc
[SwitchB-luser-client001] service-type ssh
[SwitchB-luser-client001] quit
# Set the SSH authentication method to password, service type to SFTP.