How To Change Your Known_hosts File

Some people (including myself) have been having problems when '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 :

@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 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 10.1.1.50 has changed and you have requested strict checking.
Host key verification failed.

To fix 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 for your device) delete it, and save the file.

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

  • Pingback: Errors Occurring When Installing Plex On Apple TV 2G [solved] | iPhoneBlogr.com

  • MGU3D3Z

    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 ideas.im really lost at this point.ive looked every for the answer.

    • JaeM1llz

      If you restore to a factory 4.2.1 firmware it will reset the password to alpine

  • MGU3D3Z

    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 denied.so now i cant even get to the password.

  • neil.ryan

    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

  • Henry

     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