The sftp client-source command configures the specified address or interface as the source address or source interface of the device functioning as the SFTP client.
The undo sftp client-source command restores the default source address.
By default, the source address is 0.0.0.0.
sftp client-source { -a source-ip-address | -i interface-type interface-number }
undo sftp client-source
| Parameter | Description | Value |
|---|---|---|
-a source-ip-address |
Specifies theIP address of the local FW. |
- |
-i interface-type interface-number |
Specifies the interface of the local FW. |
- |
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 simultaneously run the sftp command and specify a source address or source interface, the indicated 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 indicated interface is displayed as the IP address of the user.