beautypg.com

Establishing a connection to an sftp server – H3C Technologies H3C SecBlade LB Cards User Manual

Page 178

background image

167

Specifying a source IP address or source interface for the SFTP
client

By default, an SFTP client uses the IP address of the outbound interface specified by the route to the SFTP
server as the source IP address to communicate with the SFTP server. You can change the source IP

address or specify a source interface for the client.
To make sure the SFTP client and the SFTP server can communicate with each other, and to improve the

manageability of SFTP clients in the authentication service, H3C recommends that you specify a
loopback interface as the source interface.
To specify a source IP address or interface for the SFTP client:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Specify a source IP

address or interface for
the SFTP client.

Specify a source IPv4 address or interface for the

SFTP client:
sftp client source { interface interface-type

interface-number | ip ip-address }

Specify a source IPv6 address or interface for the

SFTP client:

sftp client ipv6 source { interface interface-type

interface-number | ipv6 ipv6-address }

Use either command.

Establishing a connection to an SFTP server

You can launch the SFTP client to establish a connection to an SFTP server, and specify the public key

algorithm, the preferred encryption algorithm, preferred HMAC algorithm, and preferred key exchange
algorithm.
After the connection is established, you can directly enter SFTP client view on the server to perform

directory and file operations.
To establish a connection to an SFTP server:

This manual is related to the following products: