logsearch / workspace

Apache License 2.0
1 stars 1 forks source link

bin/setup_private_projects fails with "WARNING: Unable to read from 'git@github.com..." #6

Open mrdavidlaing opened 9 years ago

mrdavidlaing commented 9 years ago

After launching a Vagrant workspace, attempting to initialise private repositories that use the git@ protocol (ie, as the bin/setup_private_projects script does) fails with errors like:

WARNING: Unable to read from 'git@github.com:cityindex/logsearch-filters-internal.git'
mrdavidlaing commented 9 years ago

I'm fairly certain that on this Mac this is caused by not having your GitHub ssh credentials registered with your ssh-agent.

Check by running:

ssh-add -L

If you don't see your GitHub key; add it with something similar to:

ssh-add ~/.ssh/id_rsa

Then try vagrant sshing into the workspace again

mrdavidlaing commented 9 years ago

From inside the VM you can test whether ssh agent forwarding is enabled using env | grep SSH_AUTH_SOCK

If it is, you will see something like:

[logsearch workspace] ~ ▸ env | grep SSH_AUTH_SOCK
SSH_AUTH_SOCK=/tmp/ssh-pKvVkSD7GK/agent.2498