Skip to content

Instantly share code, notes, and snippets.

@jandryuk
Created February 2, 2016 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jandryuk/1f55df5016e23d264e80 to your computer and use it in GitHub Desktop.
Save jandryuk/1f55df5016e23d264e80 to your computer and use it in GitHub Desktop.
SSH MitM attempt over TOR
$ torsocks ssh ec2-user@ec2.compute-1.amazonaws.com
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
e7:0e:73:a5:88:23:67:9c:01:87:3c:61:96:f6:e8:0a.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/user/.ssh/known_hosts:51
remove with: ssh-keygen -f "/home/user/.ssh/known_hosts" -R ec2.compute-1.amazonaws.com
RSA host key for ec2.compute-1.amazonaws.com has changed and you have requested strict checking.
Host key verification failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment