267
NOTE:
hen the device functions as the SFTP server, only one client can access the SFTP server at a time. If the
SFTP client uses WinSCP, a file on the server cannot be modified directly; it can only be downloaded to a
local place, modified, and then uploaded to the server.
Configuring the SFTP connection idle timeout period
Once the idle period of an SFTP connection exceeds the specified threshold, the system automatically
tears the connection down.
Follow these steps to configure the SFTP connection idle timeout period:
To do… Use the command…
Remarks
Enter system view system-view —
Configure the SFTP connection idle
timeout period
sftp server idle-timeout
time-out-value
Optional
10 minutes by default
Configuring the device an SFTP client
Specifying a source IP address or interface for the SFTP client
You can configure a client to use only a specified source IP address or interface to access the SFTP server,
enhancing the service manageability.
Follow these steps to specify a source IP address or interface for the SFTP client:
To do… Use the command…
Remarks
Enter system view system-view —
Specify a source IP address
or interface for the SFTP
client
• Specify a source IPv4 address or
interface for the SFTP client:
sftp client source { ip ip-address |
interface interface-type
interface-number }
• Specify a source IPv6 address or
interface for the SFTP client:
sftp client ipv6 source { ipv6
ipv6-address | interface interface-type
interface-number }
Required
Use either command.
By default, an SFTP client uses the
IP address of the interface
specified by the route of the device
to access the SFTP server.
Establishing a connection to the SFTP server
This configuration task will enable the SFTP client to establish a connection to the remote SFTP server and
enter SFTP client view.
Follow these steps to enable the SFTP client: