We are running the Jenkins service under another account (i.e. not the Local System Account), and accessing our GitHub projects via ssh. The private key is stored in Jenkins. I assume that's what you're doing too. It's working fine here.
Are you sure the credential stored in Jenkins is actually being used? Verify this by removing the credential from Jenkins and check if the pull still works from the old service account. If it does, you can be certain that the Jenkins credential wasn't actually being used before. On Thu, Sep 13, 2018 at 8:07 AM Christopher List <cglis...@gmail.com> wrote: > We are running Jenkins as a windows service on win2012 machine, and it's > working fine. > > The problem we have is that we're trying to change the service account > that it is running under. > The old and new service accounts are both local admins on the machine. > > When we change the service account, everything seems to run fine, but our > connection to GitHub using a Personal Access token stored in the global > jenkins credentials stops working with the classic error: > > stderr: Host key verification failed. > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > and the repository exists. > > > > I've re-entered the credentials into Jenkins (thinking perhaps they are > secured by the service account) and they still don't work. > As soon as I change the jenkins service back to the old service account, > the pull from GitHub works fine. > > Do I need to grant the new account access to something? Is there something > I need to configure in Jenkins for the new service account? (note that I > didn't do the original setup of jenkins on this server, I've inherited it) > > Thanks, > Chris > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/ca29e9ef-fa81-4040-9ea2-49f1a9d36417%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/ca29e9ef-fa81-4040-9ea2-49f1a9d36417%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALg80NXexsKiBjUy%2B-uQ6w9djL5mh8MNdWWyV7zbZ6B8wXL_0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.