To enable the SFTP service on the SSH server, run the sftp server enable command. A client can connect to a remote SSH server by SFTP only after the SFTP service is enabled on the SSH server.
The sftp ipv4 server enable command enables the IPv4 SFTP service on the SSH server.The sftp ipv6 server enable command enables the IPv6 SFTP service on the SSH server.
After you disable the SFTP service on the SSH server, all the clients that connect to the SSH server through SFTP are disconnected.
Example
# Enable the ipv4 SFTP service on the SFTP server.
<HUAWEI> system-view
[~HUAWEI] sftp ipv4 server enable