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
_______________________________________________
paramiko mailing list
[email protected]
http://www.lag.net/cgi-bin/mailman/listinfo/paramiko