[Twisted-Python] sshsimpleclient.py example

Michael Trosen michaeltrosen at gmail.com
Thu Aug 26 20:24:45 MDT 2004


Jp,
thanks for the info.  I  svn'd the latest stuff from the repository,
built it and installed it, but now get an error if I try my localhost.
 The only thing I changed in the example program sshsimpleclient.py is
I changed the USER var to be root, and the HOST variable to be
localhost..

Thanks for the help!
Michael

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 31, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.3/site-packages/twisted/internet/default.py",
line 526, in _doReadOrWrite
    why = getattr(selectable, method)()
  File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py",
line 244, in doRead
    return self.protocol.dataReceived(data)
  File "/usr/lib/python2.3/site-packages/twisted/conch/ssh/transport.py",
line 189, in dataReceived
    ord(packet[0]), packet[1:])
--- <exception caught here> ---
  File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line
53, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line
40, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 31, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.3/site-packages/twisted/conch/ssh/service.py",
line 42, in packetReceived
    f(packet)
  File "/usr/lib/python2.3/site-packages/twisted/conch/ssh/userauth.py",
line 287, in ssh_USERAUTH_PK_OK
    d = self.getGenericAnswers(name, instruction, prompts)
  File "/usr/lib/python2.3/site-packages/twisted/conch/ssh/userauth.py",
line 407, in getGenericAnswers
    raise NotImplementedError
exceptions.NotImplementedError: 

On Thu, 26 Aug 2004 21:34:13 -0400, Jp Calderone <exarkun at divmod.com> wrote:
> 
> 
> Michael Trosen wrote:
> > Hi Everyone,
> >
> > I'm new to using the twisted framework, so excuse me if this is a
> > basic question..
> >
> > When I run the sshsimpleclient.py example, to an external site,
> > everything works fine (I just change the code to use my username and
> > server information.)
> >
> > However, if I try to ssh to my localhost, it prints out the host key
> > fingerprint, and then hangs.. never prompting for the password.
> >
> > Is there something different about trying to connect to localhost (I
> > changed the code slightly, to take a command line parameter for the
> > username/host..:
> > if I use:  python sshsimpleclient.py myuser at echoes.dhs.org  it works perfectly
> > if I use:  python sshsimpleclient.py root at localhost    it hangs.
> >
> > I am running Suse 9.1 Professional, and I can ssh to the host just
> > using the regular openssh ssh exe.
> >
> > Thanks!  And awesome job on Twisted!
> 
>    The conch client in Twisted 1.3 had a problem connecting to servers
> without a key (or something like that).  This has been fixed in SVN
> HEAD.  Perhaps it is the cause of the problem?
> 
>    Jp
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list