cody t Posted April 17, 2012 Posted April 17, 2012 What does this mean? just upgraded firmware on my mk4 and still getting the gist of it. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is be:c3:xx:b6:xx:41:29:15:xx:5c:11:xx:83:14:17:5xx. Please contact your system administrator. Add correct host key in /Users/cthockey16/.ssh/known_hosts to get rid of this message. Offending key in /Users/cthockey16/.ssh/known_hosts:2 RSA host key for 172.16.42.1 has changed and you have requested strict checking. Host key verification failed. lost connection Quote
PineDominator Posted April 17, 2012 Posted April 17, 2012 What does this mean? just upgraded firmware on my mk4 and still getting the gist of it. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is be:c3:xx:b6:xx:41:29:15:xx:5c:11:xx:83:14:17:5xx. Please contact your system administrator. Add correct host key in /Users/cthockey16/.ssh/known_hosts to get rid of this message. Offending key in /Users/cthockey16/.ssh/known_hosts:2 RSA host key for 172.16.42.1 has changed and you have requested strict checking. Host key verification failed. lost connection when you reflash the pineapple generates a new key and to get around this you need to remove the offending key "pineapple" in /Users/cthockey16/.ssh/known_hosts on your computer I think it's the second key, don't take my word on it;-) goodluck Quote
digininja Posted April 17, 2012 Posted April 17, 2012 Whenever you ssh to a server the client stores information about that server including its fingerprint, that is the bit you say yes to when you connect to a server for the first time. From then on whenever you reconnect to that server it compares the fingerprint to the one you've confirmed is for that box, if they don't match you get a warning like you've got here. It is then up to you to decide whether it is a legitimate change or whether someone has messed with the server. In this case as you rebuilt the device its fingerprint will have changed so you know it is legit. Go into the file /Users/cthockey16/.ssh/known_hosts and remove line 2, you get 2 from the :2 on the end of the filename. If you have connected by name rather than IP you would get 1 warning and one fail like this and so you would then need to remove two lines. Quote
cody t Posted April 17, 2012 Author Posted April 17, 2012 note that im using macs terminal application to connect to the unit via scp, how would i do this? like what command would i need to get into +delete my old key? Quote
digininja Posted April 17, 2012 Posted April 17, 2012 the file is just text, use your favourite text editor. In vim :2 dd :wq will do it Quote
cody t Posted April 17, 2012 Author Posted April 17, 2012 the file is just text, use your favourite text editor. In vim :2 dd :wq will do it E492: Not an editor command: 2 dd :wq Quote
digininja Posted April 17, 2012 Posted April 17, 2012 they are all separate lines and don't miss the :2 Quote
cody t Posted April 17, 2012 Author Posted April 17, 2012 they are all separate lines and don't miss the :2 thats what i tried but dd is not a command Quote
digininja Posted April 17, 2012 Posted April 17, 2012 you must be doing something wrong then as dd is delete current line. Quote
barry99705 Posted April 17, 2012 Posted April 17, 2012 (edited) Try this, open your terminal then do; sudo vi /Users/cthockey16/.ssh/known_hosts Then arrow down to the line containing the pineapple's ip address, should be the second line. Type dd which should delete that line, then type :wq! which will write the new file and quit vi. If all else fails and you don't mind killing all your known hosts, just do a rm /Users/cthockey16/.ssh/known_hosts which will just delete the entire known_hosts file. Edited April 17, 2012 by barry99705 Quote
cody t Posted April 17, 2012 Author Posted April 17, 2012 Try this, open your terminal then do; sudo vi /Users/cthockey16/.ssh/known_hosts Then arrow down to the line containing the pineapple's ip address, should be the second line. Type dd which should delete that line, then type :wq! which will write the new file and quit vi. If all else fails and you don't mind killing all your known hosts, just do a rm /Users/cthockey16/.ssh/known_hosts which will just delete the entire known_hosts file. if i decide to kill all known hosts how do I add myself as a host again? Quote
cody t Posted April 17, 2012 Author Posted April 17, 2012 Try this, open your terminal then do; sudo vi /Users/cthockey16/.ssh/known_hosts Then arrow down to the line containing the pineapple's ip address, should be the second line. Type dd which should delete that line, then type :wq! which will write the new file and quit vi. If all else fails and you don't mind killing all your known hosts, just do a rm /Users/cthockey16/.ssh/known_hosts which will just delete the entire known_hosts file. got it thank you so much(: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.