Configuring SFTP
SFTP is a new feature in SSH2.0.
SFTP uses the SSH connection to provide secure data transfer. The router can serve as the SFTP server,
allowing a remote user to log in to the SFTP server for secure file management and transfer. The router
can also serve as an SFTP client, enabling a user to log in from the router to a remote device for secure
file transfer.
With SSH connection across VPNs, configure the router as an SFTP client to establish connections with
SFTP servers in different MPLS VPNs. For more information, see
Configuring the router as an SFTP server
Configuration prerequisites
Before you configure this task, complete the following tasks:
Configure the SSH server.
•
Use ssh user service-type to set the service type of SSH users to sftp or all.
•
For more information, see
Enabling the SFTP server
This configuration task enables the SFTP service so that a client can log in to the SFTP server through
SFTP.
To enable the SFTP server:
To do...
1.
Enter system view.
2.
Enable the SFTP server.
NOTE:
When the router 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
SSH2.0."
Command...
system-view
sftp server enable
329
"Configuring
SSH2.0."
Remarks
—
Required
Disabled by default