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 and 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
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, HP recommends you to specify a loopback
interface as the source interface.
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.
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 }
324
Remarks
Optional.
Optional.
Required.
Optional.
Optional.
Optional.
Optional.
Remarks
N/A
Use either command.