- Copy your ssh keys from your account to /etc/git-auto-deploy/.ssh/
cp -R ~/.ssh /etc/git-auto-deploy/
- Add gitlab, github or your hostname to the known_hosts file, eg.
ssh-keyscan -t rsa gitlab.com >> /etc/git-auto-deploy/.ssh/known_hosts
- Add read and write permissions to /etc/git-auto-deploy
chown -R git-auto-deploy:git-auto-deploy /etc/git-auto-deploy
chmod -R 700 /etc/git-auto-deploy/.ssh/*
- Add write permissions to your repository path
chown -R git-auto-deploy:git-auto-deploy /home/myrepo
Make sure you use your ssh url in your config.