Enabling the SFTP server
This configuration task will enable the SFTP service so that a client can log in to the SFTP server through SFTP.
When the switch acts as the SFTP server, the following restrictions are imposed on the SFTP client:
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.
The user privilege level for the SFTP client must be correctly configured.
Set the user privilege level to 3 if the SFTP client executes the following commands: delete, remove, rename, rmdir, and mkdir.
Set the user privilege level to 3 if the SFTP client executes the put command and uses the uploaded local file to overwrite the file on the SFTP server.
Set the user privilege level to 2 if the SFTP client executes the put command and does not use the uploaded local file to overwrite the file on the SFTP server.
Set the user privilege level to any value from 0 to 3 if the SFTP client executes other commands.
To enable the SFTP server:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable the SFTP server. | sftp server enable | Disabled by default. |