<br><br><div class="gmail_quote">On Tue, Feb 26, 2008 at 1:32 AM, James Bardin &lt;<a href="mailto:jbardin@bu.edu">jbardin@bu.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
<br>
Bulkan wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; Im getting the exception SSHException: Unknown server &lt;server&gt; when i run<br>
&gt; the following code on Windows, but i can ssh into the &lt;server&gt; using PuTTY.<br>
&gt; Any ideas ?<br>
&gt;<br>
&gt; &nbsp; &nbsp; import paramiko<br>
&gt; &nbsp; &nbsp; import getpass<br>
&gt;<br>
&gt; &nbsp; &nbsp; client = SSHClient()<br>
&gt; &nbsp; &nbsp; client.load_system_host_keys()<br>
<br>
</div>Try specifying the hostkeys explicitly with<br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
client.load_system_host_keys(&#39;path/to/known_hosts&#39;)</blockquote><div><br>I&#39;ve tried running the above script in Ubuntu but it also fails with the same Exception. I forgot to mention that i&#39;ve been testing this script on Windows/Ubuntu that is inside a Virtual Machine (Parallels) can this be the problem ?<br>
&nbsp;<br><br>Cheers<br></div></div><br clear="all"><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>