RE: git pull/push not working over ssh

[email protected] Wed, 25 Jun 2025 11:49:17 GMT
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <[email protected]>
I am using OpenSSH keys. 


Putty is not involved, only git. Git seems to work fine with the OpenSSH key. 
I converted my OpenSSH to a Putty key, but NetBeans isn't happy with that either. 


-----ursprüngliche Nachricht-----
 Von: [email protected]
 Gesendet: 25.06.2025 11:45 Uhr
 An: [email protected]
 Kopie: [email protected]
 Betreff: Re: git pull/push not working over ssh



Your problem reminds me of the fact that putty ssh keys are in a different format than openssh keys.
I had to convert them. Anyway, depending on what you are using, openssh or putty, that might have a clue. Also, if you are using an ssh-agent, make sure that is up and running before you start netbeans.

met vriendelijke groet
Pieter van den Hombergh


Op wo 25 jun 2025, 10:44 schreef <[email protected]>:
Hello,


I am working on a project where the git repository is cloned via ssh (I am using Windows 10 if that makes a difference).


When I am trying to pull or push, NetBeans always asks me for my credentials: https://i.imgur.com/iDi8uPb.png



Even if I provide the full path to my private key file, it still fails. When I click on cancel in the "password prompt" dialog, i get an error:


    ssh://git@****.git: fromBase64: invalid base64 data


The stacktrace of the error is here: https://notebin.de/?6e45e5e24d34f351#HPVmf7f4ye2DoXJuPifP57ZcpPpyFdt18UCujszHfykp


Needless to say that pushing from the command line works without any problems. Pushing through https from within NetBeans also works without problems, but our company changed everything to ssh. 


I guess something is wrong with my NetBeans configuration, but I can't figure out, what to provide in the "password prompt" dialog (or anywhere else). 


The bitbucket host is configured in %USERPROFILE%\.ssh\config with the correct username and full path to the private key file for that server (this is necessary as I am working with different git repositories that require different ssh keys). 


The entry looks like this: 


Host bitbucket
  Hostname bitbucket.****.com
  IdentityFile c:\******.ppk  
  User *****  
  IdentitiesOnly yes  
  Port 7999


Any ideas what I am doing wrong? 











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




-----ursprüngliche Nachricht Ende-----

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