[paramiko] SSHException: No suitable address family for xx.xx.xx.xx
Min Kim
MKim at edisonmission.com
Mon Oct 26 11:02:11 PDT 2009
I just recently started using paramiko. I'm running Python 2.5.4, paramiko
1.7.5 on Windows XP. Below is a very simple script I wrote based on a
guide, but I keep getting the (SSHException: No suitable address family
for xx.xx.xx.xx) exception, where xx.xx.xx.xx is the IP I'm trying to
connect to. The IP is of an off-site network which forwards port 22
connections to an Ubuntu computer.
from paramiko import SSHClient, AutoAddPolicy
OFFSITE_IP = 'xx.xx.xx.xx'
PORT_NO = 22
USERNAME = 'username'
PASSWORD = 'password'
ssh = SSHClient()
ssh.set_missing_host_key_policy(AutoAddPolicy())
ssh.connect(OFFSITE_IP, PORT_NO, USERNAME, PASSWORD)
I've used this sort of script from an Ubuntu computer to another Ubuntu
computer in the same network, with no problems. If anyone knows anything
about this exception and why I might be getting it, it would be very
helpful. Thank you.
-Min
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lag.net/pipermail/paramiko/attachments/20091026/23405c44/attachment.html>
More information about the paramiko
mailing list