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

Bulkan bulkan at gmail.com
Sun Feb 24 21:24:24 PST 2008


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()
    pw = None
    usr = None
    if not usr:
        usr = raw_input('User: ')

    if not pw:
        pw = getpass.getpass('Password: ' )

    client.connect('<server>',username=usr,password=pw)
    stdin, stdout, stderr = client.exec_command('ls -la')
    client.close()

This script works on my Mac (10.4) and i can.

-- 
http://www.bulkan-evcimen.com
http://blog.bulkan-evcimen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lag.net/pipermail/paramiko/attachments/20080225/588e3bdc/attachment.htm 


More information about the paramiko mailing list