Forked from tylermenezes/FakeSSH
- Add conf for
supervisor
- Log ip address, username and password
# checkout code and enter work directory
git clone https://github.com/QwertyJack/FakeSSH.git
cd FakeSSH
# copy config according to your need
# it will listen 8222 as default
cp data/config.json.sample data/config.json
# generate host key
ssh-keygen -t rsa -f data/rsa
# Optional: create the service
sudo cp -r etc/supervisor /etc
sudo sed -i 's#<.*>#'$(pwd)'#g' /etc/supervisor/conf.d/ssh.conf
# Optional: port forward 22 -> 8222
sudo iptables -t nat -A PREROUTING -p tcp --dport 22 -j REDIRECT --to-port 8222
Do not forget to open port 8222 and restart supervisor
See also 'README.md.orig'