This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

SOLVED - Remote Host ID Has Changed!

alpha1

Fri May 25, 2012 11:37:17 am

Hi there can you help her please

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
x9:d3:f2:9e:ae:8f:78:c1:37:3e:33:4a:72:4e:81:bc.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:31
remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R [192.168.9.9]:222
ECDSA host key for [192.168.9.9]:222 has changed and you have requested strict checking.
Host key verification failed.

Ok So i have tried to goggle for some help here but it has not worked out
Can anyone please give step by step guide to removing this key from my system
Thanks

Wolfman

Fri May 25, 2012 2:30:30 pm

Hi alpha1,

I haven't ever had this problem but I found these guides for you:

http://manpages.ubuntu.com/manpages/pre ... gen.1.html

And this one:

http://askubuntu.com/questions/133172/h ... d-of-ecdsa

Also:

https://wiki.archlinux.org/index.php/SSH_Keys

It is for Arch Linux but the principal the same!!.

http://superuser.com/questions/421004/h ... a-host-key

Regards Wolfman :D

alpha1

Fri May 25, 2012 3:03:09 pm

Wolfman wrote:Hi alpha1,

I haven't ever had this problem but I found these guides for you:

http://manpages.ubuntu.com/manpages/pre ... gen.1.html

And this one:

http://askubuntu.com/questions/133172/h ... d-of-ecdsa

Also:

https://wiki.archlinux.org/index.php/SSH_Keys

It is for Arch Linux but the principal the same!!.

http://superuser.com/questions/421004/h ... a-host-key

Regards Wolfman :D


Thanks for that wolfman
But sorry this has been looked at already, no joy in resolving the issue

alpha1

Sat May 26, 2012 12:56:29 pm

swarfendor437 wrote:Hi alpha1, Just came across this interesting thread but interestingly, it does not (from what I can tell) offer a solution but explains how it became generated!

http://askubuntu.com/questions/76337/wh ... ted-stored


Hi swarfendor437, Same her.
I had come across this issue before under ubuntu 11.10 but was easily resolved from memory but it dos not work for Zorin
Will have to keep looking.
I have tried - result.
:~$ sudo ssh-keygen -f /root/.ssh/known_hosts -R 192.168.9.9:222
line 1 invalid key: -----BEGIN...
line 2 invalid key: Proc-Type:...
line 3 invalid key: DEK-Info:...
line 5 missing key: KL4fpel1YNnWuR47mzh3u4T8JND/HuA4Nc+fT7yK...
line 28 missing key: 3xU8EG//dLbNJ1xXPBXfSpgzue+vFcJPVOiNb+le...
line 29 missing key: DK7Dr89Xud3BvncCoMCoccDjN/t7hXTd/4qexdmp...
line 30 invalid key: -----END...
/root/.ssh/known_hosts is not a valid known_hosts file.
Not replacing existing known_hosts file because of errors

alpha1

Mon May 28, 2012 8:12:45 am

swarfendor437 wrote:Wonder if you have to be 'true root' to access the hosts file? See viewtopic.php?f=6&t=1995


Yes i believe you do, i have tried the sudo command but nothing seems to work. unless i am missing the obvious which i may well be blinkered.

alpha1

Mon May 28, 2012 9:29:01 am

alpha1 wrote:
swarfendor437 wrote:Wonder if you have to be 'true root' to access the hosts file? See viewtopic.php?f=6&t=1995


Yes i believe you do, i have tried the sudo command but nothing seems to work. unless i am missing the obvious which i may well be blinkered.


Found a Work Around.
YES YES YES.
Found a way around it - the Answer, Change the ip Address to the host name and answer the questions with a yes.

me~$ sudo ssh root@zorin -p 222
[sudo] password for me:
The authenticity of host '[zorin]:222 ([192.168.9.9]:222)' can't be established.
ECDSA key fingerprint is f9:d3:f2:9e:ae:8f:78:c1:37:3e:33:4a:72:4...........
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[zorin]:222' (ECDSA) to the list of known hosts.
Warning: the ECDSA host key for '[zorin]:222' differs from the key for the IP address '[192.168.9.9]:222'
Offending key for IP in /root/.ssh/known_hosts:31
Are you sure you want to continue connecting (yes/no)? yes
root@zorin's password:
zorin (root) ~ $

For others who may have this problem in the future. a short cut but dos not resolve the right way to removing the key.

alpha1

Wed May 30, 2012 12:02:16 am

swarfendor437 wrote:Hi alpha1, Glad you are sorted - perhaps you would like to create a 'STICKY' in the 'How-tos and Tutorials' section? Well done that person!
I intend to mark this as [SOLVED] even if it is a workaround!


Thanks for that swarfendor437
However this is only a temporary fix, and has not resolve the issue in the OP.
Sorry.

alpha1

Mon Jan 21, 2013 9:10:25 pm

alpha1 wrote:
swarfendor437 wrote:Hi alpha1, Glad you are sorted - perhaps you would like to create a 'STICKY' in the 'How-tos and Tutorials' section? Well done that person!
I intend to mark this as [SOLVED] even if it is a workaround!


Thanks for that swarfendor437
However this is only a temporary fix, and has not resolve the issue in the OP.
Sorry.


Found the solution for updating remote host change -

Run the following from command line,

ssh-keygen -f "/root/.ssh/known_hosts" -R [192.168.0.1]:222

but ensure you prefifx command with - sudo

sudo ssh-keygen -f "/root/.ssh/known_hosts" -R [192.168.0.1]:222 press ENTER

Reply
sudo ssh-keygen -f "/root/.ssh/known_hosts" -R [192.168.0.1]:222
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old

Done
Hope this helps any one else with this issue.