Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 638 Bytes

add-ssh-keys.md

File metadata and controls

22 lines (13 loc) · 638 Bytes

How to add your SSH keys to Git-Auto-Deploy

  1. Copy your ssh keys from your account to /etc/git-auto-deploy/.ssh/

cp -R ~/.ssh /etc/git-auto-deploy/

  1. 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

  1. 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/* 
  1. 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.