ERROR : sftp://sftp@192.168.116.116:8022/test: Statfs failed: your remote may not have the required df utility: failed to run "df -k /test": : ssh: command df -k /test failed

What is the reason for this? Is it fixed? Or how do I fix it

rclone mount  sftp:test /testmount/
2024/11/14 11:12:27 ERROR : sftp://sftp@192.168.116.116:8022/test: Statfs failed: your remote may not have the required df utility: failed to run "df -k /test": : ssh: command df -k /test failed
2024/11/14 11:17:37 ERROR : sftp://sftp@192.168.116.116:8022/test: Statfs failed: your remote may not have the required df utility: failed to run "df -k /test": : ssh: command df -k /test failed

[sftp]
type = sftp
host = 192.168.116.116
user = sftp
port = 8022
pass = uBsgc98RHoQoFmf5JsPBn6-bVaRQjcWFdf5OBrU
key_file_pass = aj0KX4AbZf0lepxwF6WxMHbysF6ZfgxlSd3r-o0
shell_type = unix

welcome to the forum,

does your system has df or not?
if not, can install it.

It is explained in sftp docs:

SFTP usually supports the about command, but it depends on the server. If the server implements the vendor-specific VFS statistics extension, which is normally the case with OpenSSH instances, it will be used. If not, but the same login has access to a Unix shell, where the df command is available (e.g. in the remote's PATH), then this will be used instead. If the server shell is PowerShell, probably with a Windows OpenSSH server, rclone will use a built-in shell command (see shell access). If none of the above is applicable, about will fail.

So worst case you wont be able to run rclone about nor see free/used space on your remote.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.