Backup to SSH fails when SSH server prints to STDERR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Back In Time |
Fix Released
|
High
|
Germar |
Bug Description
Attempting to try out the new backup over SSH feature as per https:/
Situation
----------
Password-less login to remote SSH server set up and working correctly. Remote server prints a banner message to STDERR on login (see man sshd_config -> banner).
user@local$ ssh user@remote
Authorized uses only. All activity may be \ <------------- banner printed to STDERR
monitored and reported. <-------------
Last login: Thu Nov 15 12:09:09 2012 from local
[user@remote ~]$ cat /etc/ssh/
Banner /etc/issue.net
[user@remote ~]$ cat /etc/issue.net
Authorized uses only. All activity may be \
monitored and reported.
Back In Time reports an error:
"Check commands on host remote returned unknown error:
Authorized uses only. All activity may be \
monitored and reported.
Look at 'man backintime' for further instructions"
Note: remote server can not be modified to remove banner (not under my control)
Workaround
--------------
Suggest you check exit code instead of STDERR before raising mount.MountExce
Could add "-q" to the ssh command instead e.g. line 278
output, err = subprocess.
Changed in backintime: | |
status: | Fix Committed → Fix Released |
Thanks Luke. Your patch looks good. This bug occurs on other places, too. (check_chipher and save permissions in take_snapshot)