Sftp configuration example, Network requirements, Network diagram – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 633: Configuration procedure

Advertising
background image

65-5

To do…

Use the command…

Remarks

Display a list of all commands or
the help information of an SFTP
client command

help

[ all | command-name ]

Required

Terminating the Connection to the Remote SFTP Server

Follow these steps to terminate the connection to the remote SFTP server:

To do…

Use the command…

Remarks

Establish a connection to
the remote SFTP server
and enter SFTP client view

sftp

[ ipv6 ] server [ port-number ]

[ identity-key { dsa | rsa } |
prefer-ctos-cipher

{ aes128 | des } |

prefer-ctos-hmac

{ md5 | md5-96 | sha1 |

sha1-96

} | prefer-kex { dh-group-exchange

| dh-group1 | dh-group14 } |
prefer-stoc-cipher

{ aes128 | des } |

prefer-stoc-hmac

{ md5 | md5-96 | sha1 |

sha1-96

} ] *

Required
Execute the command in user
view.

bye

exit

Terminate the connection to
the remote SFTP server
and return to user view

quit

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

SFTP Configuration Example

Network requirements

As shown in

Figure 65-1

, an SSH connection is established between AC and Switch. AC, an SFTP

client, uses the username client001 and password aabbcc to login to Switch for file management and
file transfer.

Network diagram

Figure 65-1

Network diagram for SFTP configuration

SFTP server

SFTP client

Switch

AC

Vlan-int1

192.168.0.2/24

Vlan-int1
192.168.0.1/24

Configuration procedure

1) Configure the SFTP server (Switch)

# Generate RSA and DSA key pairs and enable the SSH server.

<Switch> system-view

[Switch] public-key local create rsa

[Switch] public-key local create dsa

[Switch] ssh server enable

Advertising