Ssh-agent missing keys when steps

ssh
github
git
2.0

#1

Hey everyone. Trying to test out a project on 2.0. Really like how quickly things run with the native docker environment, but I’m having a problem:

I have a private go repository that uses a dependency manager which installs dependencies from other private github repositories. I have added the user ssh key to the project, but when I attempt run the install step which accesses the private repository the command fails because the key does not appear to be available in ssh-agent (otherwise git would not ask for my username/password).

Is this something that I’m messing up on my end, or is it not yet/not going to be supported in 2.0?


#2

You just need to enable the SSH agent

https://circleci.com/docs/2.0/configuration-reference/#addsshkeys


#3