Host Key verification failed | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Host Key verification failed

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-10-2010
ahamed ahamed is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 2 September 2010, 10:03 PM EDT
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Host Key verification failed

Hi,
I am running a script to scp a file from one server to another.
I have created the public/private key and copied the public key to the other server and appended it to authorized_key file.
But i am getting the error message saying "Host Key verification failed" Connection lost.
It works well with another server.
I found another file saying known_host. Dose i have to do something with it.
I am running the script in cron as root user.


Regards,
Ahamed.
Sponsored Links
    #2  
Old 04-10-2010
Reboot's Avatar
Reboot Reboot is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 12 July 2012, 4:30 AM EDT
Location: meri jaan Mumbai, from mera desh BHAARAT.
Posts: 147
Thanks: 7
Thanked 15 Times in 15 Posts
please post the out put of :

# ssh -v -v host_server ----->> From source server

Sponsored Links
    #3  
Old 04-10-2010
ahamed ahamed is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 2 September 2010, 10:03 PM EDT
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,
I am not suppose to post the content bcos it contains some confidential data like IP address. Its against my company policy.
Is there any other way to solve this?
out of 4 server,1 server is able to perform the scp operation in the script. The remaining 3 nodes are showing host key connection failure.what might be the issue for this?

Regards,
Ahamed.
    #4  
Old 04-10-2010
Reboot's Avatar
Reboot Reboot is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 12 July 2012, 4:30 AM EDT
Location: meri jaan Mumbai, from mera desh BHAARAT.
Posts: 147
Thanks: 7
Thanked 15 Times in 15 Posts
OK...
Then just edit ~/.ssh/known_hosts file ( in the home directory of the user from where you are doing ssh) on SOURCE SERVER and remove all entry lines of host_server (either hostname or IP address).

Now again try to ssh to host_server from SOURCE SERVER and let us know if there is any problem.....

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
running commands to remote host from centralized host anjum.suri Shell Programming and Scripting 6 08-18-2009 11:55 AM
Run a shell script from one host which connext to remote host and run the commands SN2009 Shell Programming and Scripting 6 04-13-2009 05:39 AM
sftp error : Host key verification failed rancid HP-UX 3 01-14-2009 05:28 AM
installp -C error: 'bosboot verification failed' thebytegrill AIX 4 06-19-2007 12:54 PM
Signiture verification failed XNOR UNIX for Dummies Questions & Answers 1 03-31-2007 07:56 PM



All times are GMT -4. The time now is 04:04 PM.