Get error when use ssh keypair when backup

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Webmin version 2.111
Virtualmin version 7.10
Related packages php8.1

To strengthen security I have disabled password in SSH.
So when I setup scheduled backups I wanted to use ssh keys instead. The backup itself work flawless but when the script want to take away old backups I get this error.
Do I need change some setting or this is unavoidable

Deleting backups from /backups on SSH server 178.18.255.34 matching .-.-.* older than 2 days …

… failed to list directory via SSH : usage: ssh [-*********************] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] destination [command]

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