beautypg.com

Sftp configuration example, Network requirements, Configuration procedure – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 327

background image

313

Step Command

Remarks

1.

Enter SFTP client view.

For more information, see
"

Establishing a connection to the

SFTP server

."

Use the command in user view.

2.

Display a list of all commands

or the help information of an
SFTP client command.

help [ all | command-name ]

N/A

Terminating the connection to the remote SFTP server

Step Command

Remarks

1.

Enter SFTP client view.

For more information, see

"

Establishing a connection to the

SFTP server

."

Use the command in user view.

2.

Terminate the connection to

the remote SFTP server and
return to user view.

bye

exit

quit

Use any of the commands.
These three commands function in
the same way.

SFTP configuration example

Network requirements

As shown in

Figure 136

, an SSH connection is established between AC 1 and AC 2. AC 1 acts as an

SFTP client to log into AC 2 for file management and file transfer. The username is client001 and

password is aabbcc.

Figure 136 Network diagram

Configuration procedure

1.

Configure the SFTP server (AC 2):
# Generate RSA key pairs and enable the SSH server.

system-view

[AC2] public-key local create rsa

[AC2] ssh server enable

# Configure an IP address for VLAN-interface 2, which the client will use as the destination for SSH

connection.

[AC2] interface vlan-interface 2

[AC2-Vlan-interface2] ip address 192.168.0.1 255.255.255.0

[AC2-Vlan-interface2] quit

# Set the authentication mode of the user interfaces to AAA.

[AC2] user-interface vty 0 4

SFTP server

SFTP client

AC 2

AC 1

Vlan-int2
192.168.0.1/24

Vlan-int2

192.168.0.2/24