Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a SVN server (UberSVN) and have a test server (Ubuntu 11.10).

I followed the instruction link here for Auto update the working copy's with Subversion. Detail, I created a script in post-commit (the commit hook scripts) of Subversion to update svn to tesing server. My script as:

ssh username@192.168.1.137 -t -t 'cd /var/www/ThuChi && svn up'

I tried to launch command as above in terminal then it's OK to run.

I tried to launch test.sh with content is as above, then it's still OK to run.

But, I add this script in post-commit script of svn (/opt/ubersvn/repositories/ThuChi/hooks/post-commit), i'm commit something then get error

enter image description here

Error "Host key verification failed."

How to fix it ?

P/S: To automate SSH login with password, I follow the instruction link to config ssh connect to remote machine.

share|improve this question

1 Answer 1

The host key stored in $HOME/.ssh/known_hosts on your local machine does not match the host key being advertised by the server at 192.168.1.137.

This may be because that server was reinstalled from scratch and generated a new host key. In that case, just delete the entry from your local known_hosts file and ssh to the host again to capture a copy of the new host key.

share|improve this answer
    
Hi Michael Hampton, I have tried many times but nothing seems to happen. I follow the instruction link to config ssh connect to remote machine. I've tried delete content of known_host and tried copy keys to the target server: ssh-copy-id id@server –  dakiquang Oct 8 '12 at 4:54
    
That has nothing to do with the problem you described. –  Michael Hampton Oct 8 '12 at 4:55
    
yes, I tried to delete known_host and copy key again but get the same erorr –  dakiquang Oct 8 '12 at 5:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.