Last Updated: February 25, 2016
· 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\n    StrictHostKeyChecking=no" > ~<Jenkins user>/.ssh/config