Operating System - HP-UX
1836396 Members
2437 Online
110100 Solutions
New Discussion

public key authentication works fine but one message is coming when i m trying to logon the device

 
ManojKumar
Advisor

public key authentication works fine but one message is coming when i m trying to logon the device

Hi all,

I have written one sample application in order to execute the public key authentication mechanism--it is working fine .
After execution of the application when i m trying to logon the device- one message is coming i.e.

The authenticity of host '192.168.61.28 (192.168.61.28)' can't be established.
RSA key fingerprint is 15:17:0f:e7:1b:8d:d6:ed:eb:cd:f5:30:1f:a2:49:c2.
Are you sure you want to continue connecting (yes/no)?


I am not able to neglect this message--everytime i m supposed to manually enter the 'yes' and after that it is not asking for a password .

It is coming once only after execution of the application .

Query: How to get rid of this message .
Programmatically i am not able to provide the 'yes', it is not accepting---may be some encryption is there .



regards,
manoj
2 REPLIES 2
Senthil Prabu.S_1
Trusted Contributor

Re: public key authentication works fine but one message is coming when i m trying to logon the device

Hi Manoj,
Since your key does not match with the key present at ~/.ssh/known_hosts file. So open the ~/.ssh/known_hosts file and remove the entire for the server from where you want to establish a ssh session.


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Rajeev  Shukla
Honored Contributor

Re: public key authentication works fine but one message is coming when i m trying to logon the device

Yes your known_hosts file in the destination server contains wrong information for the source server. Either remove the entry and the next time you connect it will put a new permanent entry.