SSH connection problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SSH connection problem

lino.alonso
Hi,

I am trying to integrate Assembla and Jenkins but I am getting this error when I try to create a new job

Failed to connect to repository : Command "git.exe ls-remote -h [hidden email]:lino/lino-first-space.git HEAD" returned status code 128:
stdout: 
stderr: Load key "C:\\Windows\\TEMP\\ssh2281918007624712811.key": invalid format 
[hidden email]: Permission denied (publickey,keyboard-interactive). 
fatal: Could not read from remote repository.

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

I have generated SSH Key in windows and added to both Assembla and Jenkins

Any idea why?

Thank you!

Lino

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d3b7418d-7069-4177-9abc-57666a650f79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: SSH connection problem

Mark Waite-2
On Sunday, September 9, 2018 at 6:43:48 PM UTC-6, [hidden email] wrote:
> Hi,
> I am trying to integrate Assembla and Jenkins but I am getting this error when I try to create a new job
>

Command line git does not recognize the format of the private key you provided.

Be sure you use the private key, not the public key.

I regularly test the git plugin authenticating with ssh to assembla.

This should be handled on the user's list rather than the dev list.

Mark Waite


> Failed to connect to repository : Command "git.exe ls-remote -h [hidden email]:lino/lino-first-space.git HEAD" returned status code 128:
> stdout: 
> stderr: Load key "C:\\Windows\\TEMP\\ssh2281918007624712811.key": invalid format 
> [hidden email]: Permission denied (publickey,keyboard-interactive). 
> fatal: Could not read from remote repository.
>
>
> Please make sure you have the correct access rights
> and the repository exists.
>
>
> I have generated SSH Key in windows and added to both Assembla and Jenkins
>
>
> Any idea why?
>
>
> Thank you!
>
>
> Lino
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5e67bd5e-2738-4528-a095-b1ea3fc1523b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: SSH connection problem

lino.alonso
In reply to this post by lino.alonso
It works now.

I should be using the private key in Jenkins instead of the public now.

Thank you Mark!

On Monday, September 10, 2018 at 10:43:48 AM UTC+10, [hidden email] wrote:
Hi,

I am trying to integrate Assembla and Jenkins but I am getting this error when I try to create a new job

Failed to connect to repository : Command "git.exe ls-remote -h [hidden email]:lino/lino-first-space.git HEAD" returned status code 128:
stdout: 
stderr: Load key "C:\\Windows\\TEMP\\ssh2281918007624712811.key": invalid format 
[hidden email]: Permission denied (publickey,keyboard-interactive). 
fatal: Could not read from remote repository.

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

I have generated SSH Key in windows and added to both Assembla and Jenkins

Any idea why?

Thank you!

Lino

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4ff5f52e-b3ef-430e-8c76-dc5d0524975f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.