-
Notifications
You must be signed in to change notification settings - Fork 71
Setup using single static machine
- An Operating System (currently only tested on Ubuntu, Debian and OpenBSD)
- Python
- Twisted (python-twisted)
Edit honssh.cfg to your liking and start by running:
./honsshctrl.sh START
honsshctrl.sh is a shell script (provided by Black September) that runs HonSSH in the background using twistd. Use 'honsshctrl.sh HELP' for more options.
You can also run it manually with more configuration options. For example, to run in the foreground use:
twistd -y honssh.tac -p honssh.pid -n
Twisted developers made a typo from the 16.0.0 version, you have to replace the word backed
to backend
at the line 121 of the file /usr/local/lib/python2.7/dist-packages/twisted/conch/scripts/ckeygen.py
.
Related issue: https://github.com/tnich/honssh/issues/85
Try adding the PYTHONPATH to the Linux vars:
export PYTHONPATH="$PYTHONPATH:/folder/to/honssh"
Related comment: https://github.com/tnich/honssh/issues/73#issuecomment-257159325
- Copy the SSH banner using telnet (example:
SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u3
):
telnet 127.0.0.1 22
exit
- Put it into the config file
honssh.cfg
at the varssh_banner =
. Related comment: https://github.com/tnich/honssh/issues/81#issuecomment-257154859
Upgrade the requirements using pip:
pip install twisted cryptography --upgrade
Related comment: https://github.com/tnich/honssh/issues/73#issuecomment-257158700
tnich you should secure this page better - your friendly neighborhood hackerman :)