Access to .ssh/known_hosts
I'm trying to edit or remove a known_hosts file in my .ssh folder, but have no idea how I can find that folder.
Someone suggested a command I could use in Terminal, but when I tried, I got the message that I didn't have the permission. Repairing permissions didn't help.
The reason I need to do this, i sthat I get the following message when trying to log in via SSH to a shared server:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for ********.com has changed,
and the key for the corresponding IP address **************
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
**********************************.
Please contact your system administrator.
Add correct host key in /Users/ *********/.ssh/known_hosts to get rid of this message.
Offending key in /Users/ *******/.ssh/known_hosts:1
RSA host key for ************** has changed and you have requested strict checking.
Host key verification failed.
[Process completed]
---
Any advice would be highly appreciated.
8-core Mac Pro 2.8ghz, Mac OS X (10.5.6), 8x1g RAM