[Twisted-Python] Conch examples give me host key related errors

Amber "Hawkie" Brown hawkowl at atleastfornow.net
Sun Oct 9 20:11:11 MDT 2016


This is most likely because of a security change I made a few versions ago, where conch will no longer use a set of default, hard-coded SSH keys.

You may want to do something like https://github.com/twisted/twisted/blob/trunk/src/twisted/conch/manhole_tap.py#L149 <https://github.com/twisted/twisted/blob/trunk/src/twisted/conch/manhole_tap.py#L149> , and add a key yourself -- we should update these examples to add this, so that they run out of the box again.

- Amber

> On 10 Oct. 2016, at 13:05, Oon-Ee Ng <ngoonee.talk at gmail.com> wrote:
> My google-fu is failing me (or I'm the only one with a misconfigured
> ssh system), but none of the examples on
> http://twistedmatrix.com/documents/current/conch/examples/index.html
> run for me.
> The ConchError I'm mostly getting says ('no host keys, failing',
> None), while the simplesshserver.py example fails with a KeyError
> 'sshKeyDir'
> Not sure where twisted-conch expects host keys to be, but my openssh
> host keys are fine (I have a running sshd which sources them from
> /etc/ssh as per usual). That being said, there's no way twisted-conch
> as a python user-process would have access to them (nor should it).
> I'm actually just wanting to use twisted-conch-manhole, but running
> into this problem first. Is there something I need to configure in my
> system?
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20161010/704e9d0f/attachment.html>

More information about the Twisted-Python mailing list