If you are using Terminal, and are trying to connect to your i-device via SSH, and you are stuck with below error:
Don't panic! It is possible, but nobody is doing something nasty...except YOU!
How to solve this?
It is pretty simple, you just need to get to /Users/[username]/.ssh/known_hosts and empty the RSA key value in the file -- in other words, empty the known_hosts file. Below is step-by-step instructions on how to do so:
1. Open your "Finder" window.
2. Locate the "~/.ssh/" folder
In your "Finder" window --> select "Go" --> select "Go to folder..."
3. Key in "~/.ssh" into the field. Hit "Go" to continue.
4. Now you are in "/Users/[username]/.ssh/" folder. Open file "known_hosts" by double clicking it (or) use "Open with..." and choose "TextEdit".
5. Empty the file by deleting eveything in it -- "Select All" --> hit "delete" button.
My file only has one IP address. That is the device that I want to connect to. IF you have more than 1 IP address, try delete the portion of the IP address that belongs to the device that you want to connect to and leave others intact.
6. Hit "File" --> "Save" (or) "Alt+S" and you are good to go...
Hope this helps. Let me know if there is any caveat to this...
Don't panic! It is possible, but nobody is doing something nasty...except YOU!
How to solve this?
It is pretty simple, you just need to get to /Users/[username]/.ssh/known_hosts and empty the RSA key value in the file -- in other words, empty the known_hosts file. Below is step-by-step instructions on how to do so:
1. Open your "Finder" window.
2. Locate the "~/.ssh/" folder
In your "Finder" window --> select "Go" --> select "Go to folder..."
3. Key in "~/.ssh" into the field. Hit "Go" to continue.
4. Now you are in "/Users/[username]/.ssh/" folder. Open file "known_hosts" by double clicking it (or) use "Open with..." and choose "TextEdit".
5. Empty the file by deleting eveything in it -- "Select All" --> hit "delete" button.
My file only has one IP address. That is the device that I want to connect to. IF you have more than 1 IP address, try delete the portion of the IP address that belongs to the device that you want to connect to and leave others intact.
6. Hit "File" --> "Save" (or) "Alt+S" and you are good to go...
Hope this helps. Let me know if there is any caveat to this...
No comments:
Post a Comment