The sftp client-source -i command configures the specified interface as the source interface of the device functioning as the SFTP client.
By default, the source IP address of the SFTP client is the IP address of the outbound interface for accessing the SFTP server.
Usage Scenario
If you run the sftp command to log in to an SFTP server without specifying a source address or source interface, the source address or source interface specified through the sftp client-source command is adopted by default. If you run the sftp command and specify the source address or source interface, the specified source address or source interface is adopted. When viewing the current SFTP connection on the server, the specified source IP address or the primary IP address of the specified interface is displayed as the IP address of the user.
Precautions