H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – SSH
H3C S7500E Series Ethernet Switches Chapter 2 SFTP Service
2-7
II. Network diagram
Figure 2-1 Network diagram for SFTP configuration
III. Configuration procedure
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.
[SwitchB] ssh user client001 service-type sftp authentication-type password