Hi all,<br><br>Im getting the exception <span style="color: rgb(255, 0, 0);">SSHException: Unknown server <server></span>
when i run the following code on Windows, but i can ssh into the <server> using PuTTY. Any ideas ? <br>
<br> import paramiko<br> import getpass<br><br> client = SSHClient()<br> client.load_system_host_keys()<br> pw = None<br> usr = None<br> if not usr:<br> usr = raw_input('User: ')<br> <br>
if not pw:<br> pw = getpass.getpass('Password: ' )<br> <br> client.connect('<server>',username=usr,password=pw)<br><div id="1fn7" class="ArwC7c ckChnd"> stdin, stdout, stderr = client.exec_command('ls -la')<br>
client.close()<br clear="all"></div><br clear="all">This script works on my Mac
(10.4) and i can.<br><br>-- <br><a href="http://www.bulkan-evcimen.com">http://www.bulkan-evcimen.com</a><br><a href="http://blog.bulkan-evcimen.com">http://blog.bulkan-evcimen.com</a>