Operating System - HP-UX
1753639 Members
5298 Online
108798 Solutions
New Discussion юеВ

Re: SSH Verifiation Failed.

 
Ankitj_1
Occasional Contributor

SSH Verifiation Failed.

Hello,

When i am trying to SSH from machine to another Machince getting the error Message,

From machie: A

To Machine: B

######
Host Key Verification Failed.
#######

I deleted the existing key from .known_hosts & add authorized key to .known_hosts on Hots A.

But Not able to logon.

Can anybody help me out.

Regards

Ankit
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: SSH Verifiation Failed.

Hi Ankit,

Have a look at the last two posts from this thread.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1238355249657+28353475&threadId=937909

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: SSH Verifiation Failed.

Shalom,

test with -vvv command to get diagnostic detail.

Also:
http://www.hpux.ws/?p=10

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: SSH Verifiation Failed.

The known_hosts file is on your local machine and is updated when you first connect to a new remote machine. This file only needs editing when an IP address or hostname for the same machine changes. The public key is generated on your local machine and ends with the .pub filename extension. That file must be appended to the remote machine's .ssh/authorized_keys file. Make sure the public key is added to the remote system as one line only. And permissions on both local and remote systems should be:

drwx------ ./
drwxr-xr-x ../
-rw------- authorized_keys
-rw------- id_dsa
-rw------- id_dsa.pub
-rw-r--r-- known_hosts
-rw------- prng_seed


Bill Hassell, sysadmin