Operating System - HP-UX
1753481 Members
4328 Online
108794 Solutions
New Discussion юеВ

Re: Login Problem the HPUX

 
SOLVED
Go to solution
HP UNIX Professionals
Frequent Advisor

Login Problem the HPUX

Hi,

When i try to Login the HPUX box by ssh, I am getting error such as. Please help me sort-out the problem.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
11:3c:82:2d:7b:ae:bf:62:9a:82:f4:13:02:07:37:b9.
Please contact your system administrator.
Add correct host key in /home/username/.ssh/known_hosts to get rid of this message.
Offending key in /home/username/.ssh/known_hosts:215
RSA host key for al2c69 has changed and you have requested strict checking.
Host key verification failed.



Thanks & Regards,

vinay
11 REPLIES 11
Fabian Brise├▒o
Esteemed Contributor

Re: Login Problem the HPUX

Hello.

Check out following thread.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1184238
Knowledge is power.
Jeff_Traigle
Honored Contributor

Re: Login Problem the HPUX

The message tells you what to do.

On the host you're ssh'ing from, edit the indicated known_hosts file. The offending line is on line 215. Delete that line. The ssh should work for you after you say yes to adding the new line to the known_hosts file.
--
Jeff Traigle
Jeff_Traigle
Honored Contributor

Re: Login Problem the HPUX

Of course, blindly doing that isn't good. :) It assumes you know there was a legitimate reason for the key to change... new server installed in it's place, Secure Shell upgrade, etc.
--
Jeff Traigle
Tingli
Esteemed Contributor

Re: Login Problem the HPUX

Because the system is rebuilt and you can delete line 215 from /home/username/.ssh/known_hosts in your system.
Robert Salter
Respected Contributor

Re: Login Problem the HPUX

Yuo could try moving your known_hosts file to another name and then try the 'ssh' again, it should prompt you if it's okay, yada, yada, yada...

If you have a lot of "known hosts" edit the known_hosts file and remove the offending key and try 'ssh' again.


Beers,

robert
Time to smoke and joke
Sanjay_6
Honored Contributor
Solution

Re: Login Problem the HPUX

Hi,

Was there an ip address change for "al2c69". If this was a valid change, you can delete the old entry for "al2c69" in your known_hosts file and then retry.

Try,

sed -i 215d ~/.ssh/known_hosts

then ssh again to al2c69 and try.

Hope this helps.

Regards
rmueller58
Valued Contributor

Re: Login Problem the HPUX

Something has changed from the 1st time al2c69 logged with SSH..

This error is something that depends on your situation..

If your server is exposed to the world I'd think it might not hurt to do some intrusion forensics..
But if this server is in a secure environment, generally this error occurs as the result of changes to one of the systems that is connecting..

al2c69 likely has had the SSH client reloaded or the IP address of this box has changed.

as others have mentioned the simple fix is to remove the entry from the known_hosts file, which will resolve it.

When you log in again a new SSH/RSA key exchange will occur and the error will be fixed.
AVV
Super Advisor

Re: Login Problem the HPUX

Hi,

Commenet the line no 215 in the file
/home/username/.ssh/known_hosts and try again.

Before that one question. Was it working earlier or did you try to upgrade the system recently ?
HP UNIX Professionals
Frequent Advisor

Re: Login Problem the HPUX

Hi Ajeesh,

This server is new one

vinay