In my gitlab repo 
(/home/git/repositories/test-group/test-project.git/hooks) I have a 
post-receive hook set up to checkout files to the /tmp directory then scp 
those files to my remote host.

Example post-receive file:

> GIT_WORK_TREE=/tmp/test-project git checkout -f
> scp -r /tmp/test-project [email protected]:/var/www/test-project


I am able to push changes to gitlab, changes are received, project files 
are being checked out to /tmp/test-project, but I am getting this error 
from the remote host:

> remote: Host key verification failed.
> remote: lost connection


I have created the id_rsa keys for the git user in /home/git/.ssh and 
copied the .pub key to my remote host.

Am I just being dumb, is this not possible or am I doing something wrong? 

Thanks in advance,
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to