A quick intro to using mitmproxy to
man-in-the-middle an SSH connection.
So you want to sniff an SSH connection (that you have access to) but wireshark
is giving you junk? Luckily someone has written a tool for that. The
mitmproxy by Maximilian Hils allows
you to plop a fake server in between your SSH client and the SSH server
you're connecting to.
I wanted to have a nose at the data sent from git to github over SSH. This is
what I did.
# Download mitmproxy
git clone https://github.com/mitmproxy/mitmproxy.git
#Generate mitm keys (these go to ~/.mitmkeys)
Now you want to install the SSH key you just generated to the server you want