Hi there,
I tried to connect nethserver-backup to a Hetzner’s robot Storage through SFTP using Cockpit. That failed miserably, with that error message in the system log :
exec request failed on channel 0
That cryptic error message lead to that ServerFault page and to the suspicion that there was some kind of validation not supported by Hetzner’s storage system.
Digging into cockpit code, I found that line :
exec("/usr/libexec/nethserver/api/system-backup/check-sftp {$data['SftpHost']} {$data['SftpPort']} {$data['SftpUser']} {$data['SftpDirectory']} $pass_file", $output, $ret);
… and found that the validation process tries to execute some sh command, which is not allowed (no exec
system call allowed if I understood correctly).
I tried to comment out the offending line and succeeded to complete the wizard. However, the backup script later tries to send copy ssh id’s… which is also not supported by the SFTP server.
I guess I’ll need to access the server by another using another protocol, but I wanted to share that user case with you.
All the best,
M