Configuring the device as an SFTP client
This section describes how to configure the device as an SFTP client.
SFTP client configuration task list
Task
Specifying a source IP address or source interface for the SFTP client
Enabling/disabling first-time authentication
Establishing a connection to an SFTP server
Working with SFTP directories
Working with SFTP files
Displaying help information
Terminating the connection with the SFTP server
Setting the DSCP value for packets sent by the SFTP client
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 when communicating with the SFTP server.
HP recommends that you specify a loopback interface as the source interface 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.
To specify a source IP address or interface for the SFTP client:
Step
1.
Enter system view.
2.
Specify a source IP
address or interface for
the SFTP client.
Establishing a connection to an SFTP server
You can start 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.
Command
system-view
•
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 }
212
Remarks
Optional.
Optional.
Required.
Optional.
Optional.
Optional.
Optional.
Optional.
Remarks
N/A
Use either command.
By default, an SFTP client uses
the IP address of the outbound
interface specified by the route
to the SFTP server when
communicating with the SFTP
server.