[paramiko] Noob question
james bardin
jbardin at bu.edu
Thu Mar 12 13:44:40 PDT 2009
On Thu, Mar 12, 2009 at 4:06 PM, Alejandro Bednarik
<alejandro at xtech.com.ar> wrote:
>>> hostname,192.168.1.4 ssh-rsa
>>>
>>> while in ubuntu i see
>>>
>>> |1|rDQW7dhZjcQ4UdfgyapD8U+Ggfgf=|kgsgs5R0DLFVzLwbDGurhHWIXpo= ssh-rsa
>>>
>>
>> The hashed hostname shouldn't be the problem, unless you're using a
>> very old version of paramiko (added in 1.5.3)
>
> No, the hostname-ip is the problem.
>
hostname,ip shouldn't be a problem either. That's the correct format
for multiple entries on one line.
I often see "hostname.fqdn,hostname,ip" in known_hosts files.
>
> The hosts key is in my known_host (checked with ssh-keyscan -F server)
> My script fail with:
> server unknown
> because paramiko don't find the hash/key maybe because i have hostname-ip?
>
Make sure that the host keys are loaded correctly.
You can see what was loaded by inspecting client._system_host_keys
s.load_system_host_keys()
for k in s._system_host_keys:
print k
Can you connect without any error handling, and give us the stack
trace? I can only guess at what's printing "server unknown".
What version of paramiko are you using?
-jim
More information about the paramiko
mailing list