Last Updated: February 25, 2016
·
885
· jamesvandyke

Hassle-free Jenkins SSH connection to GitHub

Do you set up your Jenkins machine using Chef, RightScale, or Puppet? Ever try to get Jenkins to connect to GitHub to pull changes but need to manually accept the SSH host every time you relaunch your machine?

Just add the equivalent of this to a startup script:

$ echo -e "Host github.com\n    StrictHostKeyChecking=no" > ~<Jenkins user>/.ssh/config