tnich/honssh

Error at "Unable to find id_dsa, generating it now"

Closed this issue · 4 comments

I did a fresh reinstall of my OS (Debian 8) and I reinstalled all of python requirements using pip but I'm getting an new error that I've never seen before when I launching honSSH:

honsshctrl.sh[19047]: WARNING: Unable to find id_dsa, generating it now...
Generating public/private dsa key pair.
Traceback (most recent call last):
  File "/usr/local/bin/ckeygen", line 11, in <module>
    load_entry_point('Twisted==16.5.0', 'console_scripts', 'ckeygen')()
  File "/usr/local/lib/python2.7/dist-packages/twisted/conch/scripts/ckeygen.py", line 64, in run
    generateDSAkey(options)
  File "/usr/local/lib/python2.7/dist-packages/twisted/conch/scripts/ckeygen.py", line 121, in generateDSAkey
    backed=default_backend(),
TypeError: generate_private_key() got an unexpected keyword argument 'backed'

My config file: http://pastebin.com/vgfnVpKP

The error is maybe related to the newer version, I think generating the DSA key was working great on older version of Twisted (14.0).

I'll try tomorrow if using the debian package: python-twisted it can work.

Yes, it is a problem with the newest twisted package. There is a typo "backed" instead of "backend" at File "/usr/local/lib/python2.7/dist-packages/twisted/conch/scripts/ckeygen.py", line 121.
Manually fixing the typo fixes the key generation.

Thank you @bang-uin I just pulled a request on the twisted repository: twisted/twisted#582

tnich commented

👍