How To Change Your Known_hosts File

Some people (including myself) have been having problems when ssh'ing into their iDevice. In my case, my 2G.

I had update to iOS 4.2 for the Apple TV 2G earlier today, then decided I preferred having the use of Plex, NitoTV and other such applications so I downgraded back to iOS 4.1.

When ssh'ing back into the Apple TV I had the following :

Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA has just been changed.
The fingerprint for the sent by the remote host is
Please contact your system administrator.
Add correct host key in /Users/user/.ssh/known_hosts to get rid of this message.
Offending key in /Users/user/.ssh/known_hosts:6
RSA host key for has changed and you have requested strict checking.
Host key verification failed.

To this , we just need to alter the Known_hosts file. The easiest way to do this is to type the following into Terminal (or other such ssh'ing program) simple replace 'username' with the username on your computer:

open /Users/username/.ssh/known_hosts

This will open a text editor with the Known_hosts file open. Simple select all (or just the host entry for your device) delete it, and save the file.

Any problems, be sure to let us know and we'll get you sorted again.

6 Responses to How To Change Your Known_hosts File

  1. […] fix this error, click here for a quick tutorial on how to change your Known_hosts […]

  2. MGU3D3Z says:

    Hi, im having so much trouble.if there is anyone that can help me.i have an apple tv second generation. the first problem i encountered was that my root password is no longer alpine for that i tried reinstalling the jail broken firmware (4.2.1), still no luck. now i also had run in the the known_hosts issue the first time around but followed the instructions and it worked only to have that password not work. the problem now is that it is giving me a permission denied when i try and run the known_hosts command to get rid of the information from the textedit pop up. any really lost at this point.ive looked every for the answer.

  3. MGU3D3Z says:

    Ive restored it to firmware 4.2.1 but now im running into the known_hosts problem but when i run open /Users/username/.ssh/known_hosts it says permission now i cant even get to the password.

  4. neil.ryan says:

    Hi every one, I had the same issue with my ATV and MAC MINI.

    The only way I solved this was to enable root on my MAC log in and then run the terminal as normal to log onto the ATV.

    My guess on windows is you would need full admin rights to log in .

    Im thinking it cant be your ATV if changing from one user to a root user on my mac worked so best of luck and hope thus helps

  5. Henry says:

     ive encountered this problem before and did exactly as stated above and worked fine. This time around its saying that it doesn’t exists. Pls help and ty

Leave a Reply

where can i order someone to write my paper do my essays for me do my homework for cheap writing assignments for esl students buy term paper online