343
To specify the source IP address for SFTP packets:
1. Enter system view.
N/A
2. Specify the source
packets.
• Specify the source IPv4 address
for SFTP packets:
sftp client source { ip ip-address
| interface interface-type
interface-number }
• Specify the source IPv6 address
for SFTP packets:
sftp client ipv6 source { ipv6
ipv6-address | interface
interface-type interface-number }
By default, the source IP address
for SFTP packets is not
configured. For IPv4 SFTP
packets, the device uses the
primary IPv4 address
output interface specified in the
routing entry
address of the packets. For IPv6
automatically selects an IPv6
address as the source address of
the packets in compliance with
RFC 3484.
Establishing a connection to an SFTP server
When you try to access an SFTP server, the device must use the server's host public key to
authenticate the server. If the server's host public key is not configured on the device, the device will
notify you to confirm whether to continue with the access.
• If you choose to continue, the device accesses the server and downloads the server's host
public key.
• If you choose to not continue, the connection cannot be established.
As a best practice, configure the server's host public key on the device in an insecure network.
After the connection is established, you can directly enter SFTP client view on the server to perform
file or directory operations.
To establish a connection to an SFTP server in Release 1111: