Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 837 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 837 Bytes

Fake SSH

Forked from tylermenezes/FakeSSH

What's new

  • Add conf for supervisor
  • Log ip address, username and password

Usage

# 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'