[paramiko] SSHException: Unknown server <server> on Windows XP

James Bardin jbardin at bu.edu
Mon Feb 25 06:32:54 PST 2008



Bulkan wrote:
> Hi all,
> 
> Im getting the exception SSHException: Unknown server <server> when i run
> the following code on Windows, but i can ssh into the <server> using PuTTY.
> Any ideas ?
> 
>     import paramiko
>     import getpass
> 
>     client = SSHClient()
>     client.load_system_host_keys()

Try specifying the hostkeys explicitly with
client.load_system_host_keys('path/to/known_hosts')

The default path of '~/.ssh/known_hosts' doesn't work on windows.


-jim



More information about the paramiko mailing list