Paramiko SSHClient.connect() problem

Chris Angelico rosuav at gmail.com
Tue Oct 27 18:59:06 EDT 2015


On Wed, Oct 28, 2015 at 6:56 AM, Skip Montanaro
<skip.montanaro at gmail.com> wrote:
> On Tue, Oct 27, 2015 at 1:40 PM, Chris Angelico <rosuav at gmail.com> wrote:
>>
>> If you hack your hosts file to have only one localhost,
>> does the problem disappear?
>
>
> Yes, that appears to solve the problem. Thanks. I hadn't even thought there
> would be IPv4/IPv6 distinctions here.
>
> Interestingly enough, the box does seem to support IPv6:
>
> % ssh ::1
> Warning: Permanently added '::1' (ECDSA) to the list of known hosts.
> Last login: Tue Oct 27 07:31:10 2015 from 10.100.0.191
> ...
>
> Would I have been able to solve the problem in my paramiko calls by suitable
> changes to ssh.connect()? I don't see anything obvious, though perhaps I
> could give a non-default "sock" argument?

I've no idea. At this point, it's sounding like a paramiko issue -
possibly even a bug, I don't know. Something to explore, at least.

ChrisA



More information about the Python-list mailing list