November 15, 2014

Go CD with github via ssh

Trying to use a [email protected] url to pull from using the Go continous delivery agent? I found on the thoughtworks go support forum.

Dave Green correctly said that all you had to do was:

  • sudo su - go # do the following commands as the ‘go’ user
  • ssh-keygen # don’t set a passsphrase on the key
  • add the ~go/.ssh/ contents to a new key on github
  • git clone # this adds the github ssh server to known_hosts

The last step was what was tripping me up; the test clone adds the host signature to the known_hosts file. Apparently, the go git agent doesn’t do this automatically.

© Brandon Atkinson 2017

Powered by Hugo & Kiss.