The sftp server enable command enables the SFTP service on the SSH server.
The undo sftp server enable command disables the SFTP service from the SSH server.
By default, the SFTP service is disabled on the SSH server.
| Parameter | Description | Value |
|---|---|---|
| ipv4 | Indicates that the IPv4 SFTP service is enabled on the SSH server. | - |
| ipv6 | Indicates that the IPv6 SFTP service is enabled on the SSH server. | - |
The client can connect to the SSH server through SFTP only after the SFTP service is enabled on the SSH server.
Precautions
After the sftp server enable command is run, the system listens to IP address 0.0.0.0 by default. That is, the system listens to all IP addresses, which is prone to security issues. In this case, you are advised to run the ssh server-source command to specify a listening source for the SFTP server.