Error Acces Git Repositories : stderr: Permission denied (publickey).

142 views
Skip to first unread message

GPG Zatory

unread,
Jan 15, 2015, 4:45:37 PM1/15/15
to jenkins...@googlegroups.com
Hi, 

i have this error in mi jenkins :

Failed to connect to repository : Command "git ls-remote -h g...@github.com:vinco/x.git HEAD" returned status code 128:
stdout: 
stderr: Permission denied (publickey). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

(Attachment the image.)

I have my keys:
.id_rsa.pub.swp  id_dsa  id_dsa.pub  id_rsa  id_rsa.pub  known_hosts  known_hosts.old 

The error showed when i added the ssh url of my repo in the section  Source Code Management in the parameter Repository URL, i don't have idea because it.
Thank you very much for helping.

(Sorry for my bad english )

Screen Shot 2015-01-15 at 3.38.19 PM.png

Mark Waite

unread,
Jan 15, 2015, 9:07:40 PM1/15/15
to jenkins...@googlegroups.com
On Thu, Jan 15, 2015 at 2:45 PM, GPG Zatory <zatory...@gmail.com> wrote:
Hi, 

i have this error in mi jenkins :

Failed to connect to repository : Command "git ls-remote -h g...@github.com:vinco/x.git HEAD" returned status code 128:
stdout: 
stderr: Permission denied (publickey). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


The git command being used there needs credentials.  You haven't chosen the credentials which should be used, so it tries with no credentials.

Pick the "Add" button immediately below the Credentials pick list, and add the id_rsa file as an ssh credential.  Then choose that credential from the pick list.

Mark Waite
 
(Attachment the image.)

I have my keys:
.id_rsa.pub.swp  id_dsa  id_dsa.pub  id_rsa  id_rsa.pub  known_hosts  known_hosts.old 

The error showed when i added the ssh url of my repo in the section  Source Code Management in the parameter Repository URL, i don't have idea because it.
Thank you very much for helping.

(Sorry for my bad english )

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/81608569-fa62-42cd-8037-d8885232db7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

GPG Zatory

unread,
Feb 25, 2015, 12:44:44 AM2/25/15
to jenkins...@googlegroups.com
Hi Mark,
i will attempt
Reply all
Reply to author
Forward
0 new messages