The message "Host key verification failed" is only reported by git when it
is using a private key for authentication.  A personal access token is a
type of username/password, not a type of private key.

You may want to double check that the GitHub URL that you are using is an
https URL, not an ssh URL.  The https URL's use personal access tokens.
The ssh URL's (like ssh://g...@github.com/MarkEWaite/git-plugin.git and
g...@github.com:MarkEWaite/git-plugin.git) use private keys.

Mark Waite

On Thu, Sep 13, 2018 at 9: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/CAO49JtFKeZeRX9yZ78a1HgKZ75rNK0k29UHVy_Fq3oYy7rvGLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to