windows 10 scm git authentication

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

windows 10 scm git authentication

Matthew Broadhead-2
i have recently switched from ubuntu to windows 10 and i am having
problems authenticating the scm from either a command prompt or git shell.
mvn jgitflow:release-start

it fails with
[ERROR] Failed to execute goal
external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start
(default-cli) on project case-management: Error starting release: Error
starting release: org.eclipse.jgit.api.errors.TransportException:
[hidden email]:matthew.broadhead/case-management.git: Auth fail ->
[Help 1]

if i run with the -X switch it shows it is using my settings.xml
[DEBUG] Reading global settings from
C:\Java\apache-maven-3.6.0\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\Matthew
Broadhead\.m2\settings.xml
[DEBUG] Reading global toolchains from
C:\Java\apache-maven-3.6.0\conf\toolchains.xml
[DEBUG] Reading user toolchains from C:\Users\Matthew
Broadhead\.m2\toolchains.xml
[DEBUG] Using local repository at C:\Users\Matthew Broadhead\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0
for C:\Users\Matthew Broadhead\.m2\repository

in settings.xml i have added a link to my private key like the below.  i
have tried every combination i can think of for this including passwords
etc.
<server>
         <id>www.kissy.me.uk</id>
         <username>git</username> -->
<privateKey>${user.home}/.ssh/id_rsa</privateKey>
     </server>

the debugging doesn't give me much information as to what is actually
failing
Caused by: com.jcraft.jsch.JSchException: Auth fail
     at com.jcraft.jsch.Session.connect (Session.java:512)
     at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession
(JschConfigSessionFactory.java:116)
     at org.eclipse.jgit.transport.SshTransport.getSession
(SshTransport.java:136)
     at
org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>
(TransportGitSsh.java:262)
     at org.eclipse.jgit.transport.TransportGitSsh.openFetch
(TransportGitSsh.java:161)
     at org.eclipse.jgit.transport.FetchProcess.executeImp
(FetchProcess.java:136)
     at org.eclipse.jgit.transport.FetchProcess.execute
(FetchProcess.java:122)
     at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1138)
     at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:130)


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Reply | Threaded
Open this post in threaded view
|

Re: windows 10 scm git authentication

olamy
Hi
The jgitflow plugin is not maintained here.
You should ask here
https://bitbucket.org/atlassian/jgit-flow

HTH
Olivier

On Tue, 18 Dec 2018 at 8:35 pm, Matthew Broadhead
<[hidden email]> wrote:

> i have recently switched from ubuntu to windows 10 and i am having
> problems authenticating the scm from either a command prompt or git shell.
> mvn jgitflow:release-start
>
> it fails with
> [ERROR] Failed to execute goal
> external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start
> (default-cli) on project case-management: Error starting release: Error
> starting release: org.eclipse.jgit.api.errors.TransportException:
> [hidden email]:matthew.broadhead/case-management.git: Auth fail ->
> [Help 1]
>
> if i run with the -X switch it shows it is using my settings.xml
> [DEBUG] Reading global settings from
> C:\Java\apache-maven-3.6.0\conf\settings.xml
> [DEBUG] Reading user settings from C:\Users\Matthew
> Broadhead\.m2\settings.xml
> [DEBUG] Reading global toolchains from
> C:\Java\apache-maven-3.6.0\conf\toolchains.xml
> [DEBUG] Reading user toolchains from C:\Users\Matthew
> Broadhead\.m2\toolchains.xml
> [DEBUG] Using local repository at C:\Users\Matthew Broadhead\.m2\repository
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0
> for C:\Users\Matthew Broadhead\.m2\repository
>
> in settings.xml i have added a link to my private key like the below.  i
> have tried every combination i can think of for this including passwords
> etc.
> <server>
>          <id>www.kissy.me.uk</id>
>          <username>git</username> -->
> <privateKey>${user.home}/.ssh/id_rsa</privateKey>
>      </server>
>
> the debugging doesn't give me much information as to what is actually
> failing
> Caused by: com.jcraft.jsch.JSchException: Auth fail
>      at com.jcraft.jsch.Session.connect (Session.java:512)
>      at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession
> (JschConfigSessionFactory.java:116)
>      at org.eclipse.jgit.transport.SshTransport.getSession
> (SshTransport.java:136)
>      at
> org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>
> (TransportGitSsh.java:262)
>      at org.eclipse.jgit.transport.TransportGitSsh.openFetch
> (TransportGitSsh.java:161)
>      at org.eclipse.jgit.transport.FetchProcess.executeImp
> (FetchProcess.java:136)
>      at org.eclipse.jgit.transport.FetchProcess.execute
> (FetchProcess.java:122)
>      at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1138)
>      at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:130)
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Reply | Threaded
Open this post in threaded view
|

Re: windows 10 scm git authentication

domi@fortysix.ch
Actually, it has been forked to here: https://gitlab.com/ultreiaio/jgit-flow <https://gitlab.com/ultreiaio/jgit-flow>
/Domi

> On 18 Dec 2018, at 13:39, Olivier Lamy <[hidden email]> wrote:
>
> Hi
> The jgitflow plugin is not maintained here.
> You should ask here
> https://bitbucket.org/atlassian/jgit-flow
>
> HTH
> Olivier
>
> On Tue, 18 Dec 2018 at 8:35 pm, Matthew Broadhead
> <[hidden email]> wrote:
>
>> i have recently switched from ubuntu to windows 10 and i am having
>> problems authenticating the scm from either a command prompt or git shell.
>> mvn jgitflow:release-start
>>
>> it fails with
>> [ERROR] Failed to execute goal
>> external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start
>> (default-cli) on project case-management: Error starting release: Error
>> starting release: org.eclipse.jgit.api.errors.TransportException:
>> [hidden email]:matthew.broadhead/case-management.git: Auth fail ->
>> [Help 1]
>>
>> if i run with the -X switch it shows it is using my settings.xml
>> [DEBUG] Reading global settings from
>> C:\Java\apache-maven-3.6.0\conf\settings.xml
>> [DEBUG] Reading user settings from C:\Users\Matthew
>> Broadhead\.m2\settings.xml
>> [DEBUG] Reading global toolchains from
>> C:\Java\apache-maven-3.6.0\conf\toolchains.xml
>> [DEBUG] Reading user toolchains from C:\Users\Matthew
>> Broadhead\.m2\toolchains.xml
>> [DEBUG] Using local repository at C:\Users\Matthew Broadhead\.m2\repository
>> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0
>> for C:\Users\Matthew Broadhead\.m2\repository
>>
>> in settings.xml i have added a link to my private key like the below.  i
>> have tried every combination i can think of for this including passwords
>> etc.
>> <server>
>>         <id>www.kissy.me.uk</id>
>>         <username>git</username> -->
>> <privateKey>${user.home}/.ssh/id_rsa</privateKey>
>>     </server>
>>
>> the debugging doesn't give me much information as to what is actually
>> failing
>> Caused by: com.jcraft.jsch.JSchException: Auth fail
>>     at com.jcraft.jsch.Session.connect (Session.java:512)
>>     at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession
>> (JschConfigSessionFactory.java:116)
>>     at org.eclipse.jgit.transport.SshTransport.getSession
>> (SshTransport.java:136)
>>     at
>> org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>
>> (TransportGitSsh.java:262)
>>     at org.eclipse.jgit.transport.TransportGitSsh.openFetch
>> (TransportGitSsh.java:161)
>>     at org.eclipse.jgit.transport.FetchProcess.executeImp
>> (FetchProcess.java:136)
>>     at org.eclipse.jgit.transport.FetchProcess.execute
>> (FetchProcess.java:122)
>>     at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1138)
>>     at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:130)
>>
>>
>> ---
>> This email has been checked for viruses by Avast antivirus software.
>> https://www.avast.com/antivirus
>>
> --
> Olivier Lamy
> http://twitter.com/olamy | http://linkedin.com/in/olamy

Reply | Threaded
Open this post in threaded view
|

Re: windows 10 scm git authentication

Matthew Broadhead-2
this one seems better and more current
https://github.com/aleksandr-m/gitflow-maven-plugin
switching to this solved my particular problem as it doesn't use JGit
but instead runs the executable at command line

On 18/12/2018 14:46, domi wrote:

> Actually, it has been forked to here: https://gitlab.com/ultreiaio/jgit-flow <https://gitlab.com/ultreiaio/jgit-flow>
> /Domi
>
>> On 18 Dec 2018, at 13:39, Olivier Lamy <[hidden email]> wrote:
>>
>> Hi
>> The jgitflow plugin is not maintained here.
>> You should ask here
>> https://bitbucket.org/atlassian/jgit-flow
>>
>> HTH
>> Olivier
>>
>> On Tue, 18 Dec 2018 at 8:35 pm, Matthew Broadhead
>> <[hidden email]> wrote:
>>
>>> i have recently switched from ubuntu to windows 10 and i am having
>>> problems authenticating the scm from either a command prompt or git shell.
>>> mvn jgitflow:release-start
>>>
>>> it fails with
>>> [ERROR] Failed to execute goal
>>> external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start
>>> (default-cli) on project case-management: Error starting release: Error
>>> starting release: org.eclipse.jgit.api.errors.TransportException:
>>> [hidden email]:matthew.broadhead/case-management.git: Auth fail ->
>>> [Help 1]
>>>
>>> if i run with the -X switch it shows it is using my settings.xml
>>> [DEBUG] Reading global settings from
>>> C:\Java\apache-maven-3.6.0\conf\settings.xml
>>> [DEBUG] Reading user settings from C:\Users\Matthew
>>> Broadhead\.m2\settings.xml
>>> [DEBUG] Reading global toolchains from
>>> C:\Java\apache-maven-3.6.0\conf\toolchains.xml
>>> [DEBUG] Reading user toolchains from C:\Users\Matthew
>>> Broadhead\.m2\toolchains.xml
>>> [DEBUG] Using local repository at C:\Users\Matthew Broadhead\.m2\repository
>>> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0
>>> for C:\Users\Matthew Broadhead\.m2\repository
>>>
>>> in settings.xml i have added a link to my private key like the below.  i
>>> have tried every combination i can think of for this including passwords
>>> etc.
>>> <server>
>>>          <id>www.kissy.me.uk</id>
>>>          <username>git</username> -->
>>> <privateKey>${user.home}/.ssh/id_rsa</privateKey>
>>>      </server>
>>>
>>> the debugging doesn't give me much information as to what is actually
>>> failing
>>> Caused by: com.jcraft.jsch.JSchException: Auth fail
>>>      at com.jcraft.jsch.Session.connect (Session.java:512)
>>>      at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession
>>> (JschConfigSessionFactory.java:116)
>>>      at org.eclipse.jgit.transport.SshTransport.getSession
>>> (SshTransport.java:136)
>>>      at
>>> org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>
>>> (TransportGitSsh.java:262)
>>>      at org.eclipse.jgit.transport.TransportGitSsh.openFetch
>>> (TransportGitSsh.java:161)
>>>      at org.eclipse.jgit.transport.FetchProcess.executeImp
>>> (FetchProcess.java:136)
>>>      at org.eclipse.jgit.transport.FetchProcess.execute
>>> (FetchProcess.java:122)
>>>      at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1138)
>>>      at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:130)
>>>
>>>
>>> ---
>>> This email has been checked for viruses by Avast antivirus software.
>>> https://www.avast.com/antivirus
>>>
>> --
>> Olivier Lamy
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>

--
Mr MT Broadhead
Nigel Broadhead Mynard
See the latest jobs available at NBM @ https://nbmlaw.co.uk/recruitment.htm

32 Rainsford Road
Chelmsford Essex CM1 2QG
Tel: 01245 269909 Fax: 01245 261932
https://nbmlaw.co.uk

Partners: WJ Broadhead NP Eason SJ Lacey CR Broadhead D Seepaul T Carley

Nigel Broadhead Mynard Solicitors are authorised and regulated by the Solicitors Regulation Authority. We are also bound by their code of conduct. Registered no. 00061052

Nigel Broadhead Mynard also provide a will writing service, see https://nbmlaw.co.uk/wills.htm for more information

Confidentiality: Information in this message is confidential and may be legally privileged. It is intended solely for the recipient to whom it is addressed. If you receive the message in error, please notify the sender and immediately destroy all copies.

Security warning: Please note that this e-mail has been created in the knowledge that e-mail is not a 100% secure communications medium. We advise you that you understand and observe this lack of security when e-mailing us. This e-mail does not constitute a legally binding document. No contracts may be concluded on behalf of Nigel Broadhead Mynard Solicitors by e-mail communications.

Disclaimer: Please be aware of cyber crime. Nigel Broadhead Mynard will not take responsibility if you transfer money to a wrong bank account. Please speak to your Solicitor before transferring any money. If you receive an email from Nigel Broadhead Mynard requesting your bank details or telling you our bank details have changed, please contact your Solicitor immediately to clarify.

PLEASE ALSO NOTE that Nigel Broadhead Mynard only use emails which end with the suffix @nbmlaw.co.uk.  If you receive any email from an address without that suffix or where that suffix does not appear in the address box when you click "Reply" then you should not rely on the email being from NBM and you should immediately contact us on the above number or any numbers published on our website to verify the source of the email is genuine.

If you have any queries, please contact [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]