duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] More to "unable to connect" using duplicity 0.6.18.


From: edgar . soldin
Subject: Re: [Duplicity-talk] More to "unable to connect" using duplicity 0.6.18...
Date: Wed, 23 May 2012 14:40:39 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

On 23.05.2012 14:25, g d0b3rm4n wrote:
> Hi,
> 
> I have:
> 
> # duplicity -V
> duplicity 0.6.18
> 
> It used to work for me on the CLI with new ssh backend, but not when
> it was started via cron, via cron started I got:
> BackendException: ssh connection to example.com:22 failed: Unknown
> server example.com
> 
> so I narrowed it down to the following problem:
> 
> works:
> # /usr/bin/duplicity full
> --ssh-options=-oIdentityFile=/etc/backup/backup-ssh-key
> --archive-dir=/data/arch --tempdir=/data/arch/tmp -v0 /root
> scp://address@hidden/root
> 
> 
> fails:
> # HOME=/ /usr/bin/duplicity full
> --ssh-options=-oIdentityFile=/etc/backup/backup-ssh-key
> --archive-dir=/data/arch --tempdir=/data/arch/tmp -v0 /root
> scp://address@hidden/root
> BackendException: ssh connection to example.com:22 failed: Unknown
> server example.com
> 
> I set the HOME env variable in cron to be /, so it seems (or I assume)
> that the new ssh backend can't handle it if there is no
> ~/.ssh/known_hosts?
> 
> since it works if I do this:
> 
> # mkdir /.ssh
> # cp ~/.ssh/known_hosts /.ssh/
> # HOME=/ /usr/bin/duplicity full
> --ssh-options=-oIdentityFile=/etc/backup/backup-ssh-key
> --archive-dir=/data/arch --tempdir=/data/arch/tmp -v0 /root
> scp://address@hidden/root
> 
> 
> so the "Unknown server example.com" is misleading in this case!?
> 
> Can that be fixed or is it fixed in yesterdays release 0.6.19 with this:
> - add missing_host_key prompt to new sshbackend similar to ssh procedure
> 


first, why do you set HOME to file system root '/'? how do you expect programs 
like gpg and ssh to find their settings?

does example.com exist or is it defined in .ssh/config? if so you will 
definitely be helped with 0.6.19 . if not, try anyway because some more issues 
with the new ssh backend were solved in there.

..ede/duply.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]