If root on the simplesnap backuphost is already logged into a serverhost with ssh session sharing enabled, then it is crucially important that the following two ssh options are included in the --sshcmd:
ControlMaster=no
ControlPath=none
Putting these on the ssh command line will override any such settings in /etc/ssh/ssh_config and ~/.ssh/config
e.g.
SSHCMD='ssh -o ControlMaster=no -o ControlPath=none -i /root/.ssh/id_rsa_simplesnap'
simplesnap --sshcmd "$SSHCMD" ...
Without these two options, the ssh command will be run over an existing control path, resulting in $SSH_ORIGINAL_COMMAND being empty and simplesnapwrap exiting with the error:
simplesnapwrap: This program is to be run from ssh.
Please add this info to the man page and in the example cron scripts.
If root on the
simplesnapbackuphost is already logged into a serverhost with ssh session sharing enabled, then it is crucially important that the following twosshoptions are included in the--sshcmd:Putting these on the ssh command line will override any such settings in
/etc/ssh/ssh_configand~/.ssh/confige.g.
Without these two options, the ssh command will be run over an existing control path, resulting in
$SSH_ORIGINAL_COMMANDbeing empty andsimplesnapwrapexiting with the error:Please add this info to the man page and in the example cron scripts.