duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] BackendException: could not load /etc/ssh/ssh_known


From: edgar . soldin
Subject: Re: [Duplicity-talk] BackendException: could not load /etc/ssh/ssh_known_hosts, maybe corrupt?
Date: Wed, 8 Jun 2016 13:31:05 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

On 08.06.2016 13:20, Florent B via Duplicity-talk wrote:
> On 06/08/2016 11:40 AM, edgar.soldin--- via Duplicity-talk wrote:
>> On 08.06.2016 11:35, Florent B wrote:
>>> On 06/06/2016 09:40 PM, edgar.soldin--- via Duplicity-talk wrote:
>>>> On 06.06.2016 18:20, Florent B via Duplicity-talk wrote:
>>>>> Hi list,
>>>>>
>>>>> Since Debian upgrade to Jessie, my Duplicity (last stable version)
>>>>> stopped working with this error :
>>>>>
>>>>> BackendException: could not load /etc/ssh/ssh_known_hosts, maybe corrupt?
>>>>>
>>>>> /etc/ssh/ssh_known_hosts didn't change, content is the same as before
>>>>> upgrade.
>>>>>
>>>>> What could be the problem ?
>>>> the backend seems to swallow the underlying exception. would you be 
>>>> willing to patch your
>>>>  duplicity/backends/ssh_paramiko_backend.py
>>>> ?
>>>>
>>>> what's your paramiko version?
>>>>
>>>> ..ede/duply.net
>>>>
>>> Hi,
>>>
>>> Yes I can patch ssh_paramiko_backend.py to test :)
>>>
>>> pip show paramiko
>>> ---
>>> Metadata-Version: 2.0
>>> Name: paramiko
>>> Version: 2.0.0
>>> Summary: SSH2 protocol library
>>> Home-page: https://github.com/paramiko/paramiko/
>>> Author: Jeff Forcier
>>> Author-email: address@hidden
>>> Installer: pip
>>> License: LGPL
>>> Location: /usr/local/lib/python2.7/dist-packages
>>> Requires: pyasn1, cryptography
>>> Classifiers:
>>>   Development Status :: 5 - Production/Stable
>>>   Intended Audience :: Developers
>>>   License :: OSI Approved :: GNU Library or Lesser General Public
>>> License (LGPL)
>>>   Operating System :: OS Independent
>>>   Topic :: Internet
>>>   Topic :: Security :: Cryptography
>>>   Programming Language :: Python
>>>   Programming Language :: Python :: 2
>>>   Programming Language :: Python :: 2.6
>>>   Programming Language :: Python :: 2.7
>>>   Programming Language :: Python :: 3
>>>   Programming Language :: Python :: 3.2
>>>   Programming Language :: Python :: 3.3
>>>   Programming Language :: Python :: 3.4
>>>   Programming Language :: Python :: 3.5
>>>
>>>
>>> But I also have 2.0.0 version of Paramiko on Wheezy and it works well..
>>>
>> for starters, can you send me the file privately? as it only contains a 
>> known public key/host name list this shouldn't be a security concern.
>>
>> just want to check the format.
>>

ok, looks good. just to make sure can you 'ls -la /etc/ssh/ssh_known_hosts' and 
show me that the permissions are correct?

and then please patch (keep a copy of course ;) your 
duplicity/backends/ssh_paramiko_backend.py as such

- remove 2x the try/except's around the known hosts loading routine in lines 
1340- 148

rerun your previous duplicity command and see if the thrown exception is more 
detailed.

..ede/duply.net



reply via email to

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