Skip to content

documentation: simplesnap and ssh ControlMaster/ControlPath #11

@craig-sanders

Description

@craig-sanders

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions