Specifying the source IP address for SFTP packets
As a best practice, specify the IP address of the loopback interface as the source address of SFTP packets for the following purposes:
Ensuring the communication between the SFTP client and the SFTP server.
Improving the manageability of SFTP clients in authentication service.
To specify the source IP address for SFTP packets:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Specify the source address for SFTP packets. |
| By default, the source IP address for SFTP packets is not configured. For IPv4 SFTP packets, the device uses the primary IPv4 address of the output interface specified in the routing entry as the source address of the packets. For IPv6 SFTP packets, the device automatically selects an IPv6 address as the source address of the packets in compliance with RFC 3484. |