[Twisted-Python] Can't get ssh-connections to work

Anders Bruun Olsen anders at bruun-olsen.net
Wed Jul 2 22:12:30 EDT 2003


I am brand-spanking new at twisted but wanted to make an app that
connects through ssh to a remote machine and fetches some info, which I
thought twisted to be perfect for. I am trying to get the ssh example to
work but it just hangs!

I have entered it exactly as it is on the webpage (cut-and-paste and the
fixed the indentions). The only thing changed is the host to connect to,
there I have chosen a server I have running on my LAN.
I have also added a call to log.startLogging(sys.stdout, setStdout=0) to
get some logging output to see if I could figure out the problem. This
is the output I get:

2003/07/03 04:04 CEST [-] Log opened.
2003/07/03 04:04 CEST [-] Starting factory <twisted.internet.protocol.ClientFactory instance at 0x8359c0c>
2003/07/03 04:04 CEST [-] Stopping factory <twisted.internet.protocol.ClientFactory instance at 0x8359c0c>

Then it just hangs there until I break it. I can't see any connection on
the server, so I don't think it even gets that far.

What might be the problem here?

Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41

More information about the Twisted-Python mailing list