On Thu, Jan 11, 2018 at 7:15 PM Eric <naisa...@gmail.com> wrote:

> I have this configured this way as well, but it still hangs on:
>
> git fetch --tags --progress git@git.world1:space.git
>> +refs/heads/*:refs/remotes/origin/*
>
>
> SSH'ing into Jenkins and running git clone with the same key in ~/.ssh
> works just fine
>
> git clone git@git.world1:space.git
>>
>
>
I'm not sure what you mean by "I have this configured this way as well", so
I'll make a guess.

If that means you have configured a username and password credential (as
shown in the image), and then are trying to clone with the command you
listed, it can't work.

The "git@hostname:path" syntax is a git shorthand for ssh based
authentication.  It requires a private key credential rather than a
username / password pair.

The private key you're currently using is probably stored in
~/.ssh/id_rsa.  That's the private key to use as the credential for that
repository.

If my guess of your meaning is incorrect, please provide more details of
what you mean when you say "I have this configured this way as well".

Mark Waite


>
> On Saturday, September 17, 2016 at 12:27:34 AM UTC-4, Mark Waite wrote:
>>
>> You need a credential that looks like this ->
>>
>> [image: github-username-password.png]
>>
>> You don't want a credential that looks like this ->
>> [image: github-rsa-private-key.png]
>>
>> Mark Waite
>>
>> On Fri, Sep 16, 2016 at 8:33 PM Hung <hung....@voltage-ent.com> wrote:
>>
>>> Thanks, I will try to see if I can this to work a little more before
>>> trying
>>> to install older version of git.  I didn't any setting for me to choose
>>> https or ssh.  I just added the credentials in the SCM location when i
>>> added
>>> my repo.  I chose username and password and provided both.  Here is
>>> image of
>>> the credential in the Jenkins Credential Tab.
>>>
>>> <
>>> http://jenkins-ci.361315.n4.nabble.com/file/n4842697/Screen_Shot_2016-09-16_at_8.png
>>> >
>>>
>>> If there is a location in the Jenkins to say use https or ssh, please
>>> let me
>>> know.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://jenkins-ci.361315.n4.nabble.com/Mac-Jenkins-Can-t-Clone-fetch-from-GitHub-tp4842626p4842697.html
>>> Sent from the Jenkins users mailing list archive at Nabble.com.
>>>
>>> --
>>> 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/1474082919062-4842697.post%40n4.nabble.com
>>> .
>>> 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/5b502a96-a45a-44c4-920e-b7ef21f12a66%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5b502a96-a45a-44c4-920e-b7ef21f12a66%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/CAO49JtFG852VhBZbp%3DZ6HCP6uFw270-Zg_7z8zdhHZPyc4BA1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to