beautypg.com

Sftp configuration example, Network requirements, Network diagram – H3C Technologies H3C S3600 Series Switches User Manual

Page 965: Configuration procedure

background image

1-18

To do…

Use the command…

Remarks

Display the source IP address
used by the current SFTP client

display sftp source-ip

Optional

Available in any view

SFTP Configuration Example

Network requirements

As shown in

Figure 1-7

, establish an SSH connection between the SFTP client (switch A) and the SFTP

server (switch B). Log in to switch B through switch A to manage and transmit files. An SFTP user with

the username client001 and password abc exists on the SFTP server.

Network diagram

Figure 1-7 Network diagram for SFTP configuration

Configuration procedure

1) Configure the SFTP server (switch B)

# Create key pairs.

system-view

[Sysname] public-key local create rsa

[Sysname] public-key local create dsa

# Create a VLAN interface on the switch and assign to it an IP address, which is used as the destination

address for the client to connect to the SFTP server.

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] ip address 192.168.0.1 255.255.255.0

[Sysname-Vlan-interface1] quit

# Specify the SSH authentication mode as AAA.

[Sysname] user-interface vty 0 4

[Sysname-ui-vty0-4] authentication-mode scheme

# Configure the protocol through which the remote user logs in to the switch as SSH.

[Sysname-ui-vty0-4] protocol inbound ssh

[Sysname-ui-vty0-4] quit

# Create a local user client001.

[Sysname] local-user client001

[Sysname-luser-client001] password simple abc

[Sysname-luser-client001] service-type ssh

[Sysname-luser-client001] quit

# Configure the authentication mode as password. Authentication timeout time, retry number, and

update time of the server key adopt the default values.

This manual is related to the following products: