What is the error message I am receiving on my MAC?

jwaves

Well-known member
Jan 20, 2014
54
0
0
Visit site
I'm having a probelm with terminal on my mac

How Do I fix this problem with terminal. I am a complete NOOB and have no idea how to set up commands properly. I was trying to jailbreak my device and add cydia to it on 8.1 but i ran into an issue with terminal while performing an "ssh"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
86:6c:fa:40:6f:4d:ee:7a:a3:c2:12:f0:01:1c:01:62.
Please contact your system administrator.
Add correct host key in /Users/JO3/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/JO3/.ssh/known_hosts:1
RSA host key for 192.168.2.3 has changed and you have requested strict checking.
Host key verification failed.

how exactly do I fix this?
 

sau124

Well-known member
Aug 13, 2012
549
1
0
Visit site
Re: I'm having a probelm with terminal on my mac

"Host key verification failed" means that the host key of the remote host was changed.

Ssh stores the host keys of the remote hosts in ~/.ssh/known_hosts. You can either edit that text file manually and remove the old key (you can see the line number in the error message), or use

ssh-keygen -R hostname
 

sau124

Well-known member
Aug 13, 2012
549
1
0
Visit site
Re: I'm having a probelm with terminal on my mac

If you do not want to manually mess with the lines use this command and it should fix the issue...

To correct it, simply go to your Terminaland type in the following command,

sed -i '1d' ~/.ssh/known_hosts

I’m using ‘1’ because the error from above says that my offending line is line 1):
known_hosts:1
 

sau124

Well-known member
Aug 13, 2012
549
1
0
Visit site
Re: I'm having a probelm with terminal on my mac

Also, I am assuming you have administrator access as you will need the same...
Hope this helps...
 

sau124

Well-known member
Aug 13, 2012
549
1
0
Visit site
Re: I'm having a probelm with terminal on my mac

So I assume it fixed the issue... glad it worked out for you!
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
260,379
Messages
1,766,634
Members
441,240
Latest member
williams77