I have set up everyhing I could find, but still cloning a repo from GitHub hangs the provisioning process.
I have:
- server in known_hosts
.ssh/config
Host github.com ForwardAgent yes StrictHostKeyChecking no
copied private key
- public key is in authorized_keys
- the command runs as
vagrant
user the play is:
- name: Checkout from git git: [email protected]:username/repositoryname.git dest=/srv/website
sudo
, because it breaks agent forwarding. – anatoly techtonikssh-agent
port to remote SSH port, and going throughsudo
breaks this chain unless you work around this. See stackoverflow.com/a/24134109/239247 – anatoly techtonik