Hi, We are trying to set up SSH jump hosts between some BackupPC hosts and some client machines. Everything is working fine when running SSH commands manually. Unfortunately when they are configured in BackupPC, the same SSH commands are failing with unknown errors. We can't seem to figure out what is preventing us from using SSH jump hosts between BackupPC and client machines.
I found some older posts of people trying to use jump hosts in BackupPC, none of them succeeded. Is there anyone on this list with more success with setting up jump hosts? Is there something in BackupPC code that is preventing the use of jump hosts? I have tried the following: Option A: using the "-J" argument in SSH commands directly in BackupPC 1. DumpPreUserCmd (via SSH) - Old command is "$sshPath -q -l backupuser $host /usr/bin/sudo /path/to/command" - Added "-J jumpuser@jumphost" to the command arguments - New value is "$sshPath -J jumpuser@jumphost -q -l backupuser $host /usr/bin/sudo /path/to/command" - Manually this command is working perfectly fine. We see successful logins in the logs of jump host and target host. - When initiated through BackupPC we get the following error: DumpPreUserCmd returned error status 65280... exiting - No connection attempts are logged at either jump host or target host 2. RsyncSshArgs - Old value is: [ '-e', '$sshPath -l backupuser' ] - Added "-J jumpuser@jumphost" to the command arguments - New value is [ '-e', '$sshPath -J jumpuser@jumphost -l backupuser' ] - When initiated through BackupPC we get the following error: Got fatal error during xfer (rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.2.0]) - No connection attempts are logged at either jump host or target host Option B: using an SSH client config file Alternatively I have tried using an implicit jump host through SSH client config with a slightly different way of setting up the jump host (through netcat). This results in exactly the same errors. Host client-machine ProxyCommand ssh jumphost nc %h %p 2> /dev/null Host jumphost Hostname jumphostname User jumphostuser Because both Option A and Option B do work manually, but result in the same errors it does seem that BackupPC is somehow unable to work with SSH connections through a jump host. Hopefully someone on this list will be able to shine a light on how I can get this working. Best regards, Pim Rupert _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/