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

Gerald Colwill commented on NETBEANS-4588:
------------------------------------------

Hi David, been having similar problems. 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.

> Can't use git clone wizard with SSH protection
> ----------------------------------------------
>
>                 Key: NETBEANS-4588
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4588
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Window System
>    Affects Versions: 12.0
>            Reporter: David Mann
>            Priority: Major
>
> I get an "Incorrect credentials for repository..." when attempting to use the 
> Teams->Git->Clone wizard using an SSH key which works correctly from Git 
> Bash, Cygwin and even from the terminal plugin within Netbeans. Please see my 
> StackOverflow question: 
> [https://stackoverflow.com/questions/62918236/cannot-use-team-git-clone-wizard-in-netbeans-12-to-connect-to-a-github-rep]
> This issue just never seems to go away completely. I don't want to use an SSH 
> tunnel. I'm trying to get away from using password over HTTP, and I don't 
> enjoy grubbing around in the command line, so I would really like to get this 
> working from within the IDE.



--
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