[ 
https://issues.apache.org/jira/browse/NETBEANS-3567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17253774#comment-17253774
 ] 

Gerald Colwill commented on NETBEANS-3567:
------------------------------------------

Hi, been having similar problems but on Linux. I create my ssh keys using 
OpenSSH which now creates the private key beginning with BEGIN OPENSSH PRIVATE 
KEY,  JGit (which Netbeans is using) does not support this. My solution was to 
create another key (name it something different like id_rsa_pem) with 
ssh-keygen as before but add the -m PEM option. It then creates the key 
beginning with BEGIN RSA PRIVATE KEY which JGit supports. You will need to add 
the private key for the pem (id_rsa_pem.pub) to GitHub or whatever repo manager 
you are using. Then use that key (id_rsa_pem) in Netbeans when doing git clone, 
pull or whatever.

Hope this helps.

> Git failure on Windows
> ----------------------
>
>                 Key: NETBEANS-3567
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3567
>             Project: NetBeans
>          Issue Type: Bug
>          Components: versioncontrol - Git
>    Affects Versions: 11.2
>         Environment: Windows 10
>            Reporter: Ivan Skalauh
>            Priority: Critical
>              Labels: git
>
> This bug travels from version to version for a decade now.
> If you clone a repository via ssh via external means (in my case, Git Bash on 
> win), Netbeans' git module fails to work with it ("Auth fail" with the 
> correct and working private key provided). 
> Steps to reproduce:
> - open Git Bash, clone a repository via ssh;
> - open this project in Netbeans;
> - try to pull; fail.
> There's an annoying workaround of re-cloning the repository from inside 
> Netbeans I'm aware of. But maybe it's finally time for this ancient bug to 
> go. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to