beautypg.com

Sftp client configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 236

background image

12-6

To do…

Use the command…

Remarks

user view

quit

These three commands function in

the same way.

SFTP Client Configuration Example

Network requirements

As shown in

Figure 12-1

, an SSH connection is established between Switch A and Switch B. Switch A,

an SFTP client, logs in to Switch B for file management and file transfer. An SSH user uses publickey

authentication with the public key algorithm being RSA.

Figure 12-1 Network diagram for SFTP client configuration

Configuration procedure

During SFTP server configuration, the client public key is required. Therefore, you are recommended

to use the client software to generate RSA key pairs on the client before configuring the SFTP server.

1) Configure the SFTP client

# Create VLAN-interface 1 and assign an IP address to it.

system-view

[SwitchA] interface vlan-interface 1

[SwitchA-Vlan-interface1] ip address 192.168.0.2 255.255.255.0

[SwitchA-Vlan-interface1] quit

# Generate the RSA key pairs.

[SwitchA] public-key local create rsa

The range of public key size is (512 ~ 2048).

NOTES: If the key modulus is greater than 512,

It will take a few minutes.

Press CTRL+C to abort.

Input the bits of the modulus[default = 1024]:

Generating Keys...

++++++++

++++++++++++++

+++++

++++++++

# Export the host public key to file pubkey.