Configuring sftp-server
SSH File Transfer Protocol (SFTP) is a network protocol that provides file access, file transfer, and file management over any reliable data stream. Starting in Junos OS Release 19.1R1, we have globally disabled the incoming SFTP connections by default and if desired you can globally enable the incoming SFTP connections by configuring the statement sftp-server at the [edit system services ssh] hierarchy level. Prior to Junos OS Release 19.1R1, incoming SFTP connections were globally enabled by default.
Only the incoming SFTP connections are disabled by default. For example, given devices A and B (where device A is running 19.1R1), you cannot connect through SFTP from B to A by default. However, you can connect through SFTP from device B to device A, if you configure sftp-server on device A .
The incoming SFTP connections are disabled by default. To enable the incoming SFTP connections, configure sftp-server:
- To enable incoming SFTP connections include the sftp-server statement at the [edit system services ssh] hierarchy
level: [edit system services ssh]user@host# set sftp-server
- Commit the configuration.[edit system services ssh]user@host# commit
The sftp-server statement is set. Therfore, the incoming SFTP connections are enabled.