If you are using openssh, there is no need to do anything with keys. They
are in the proper format.

In my setup (windows 11, freshly netbeans 26), looking at the output window
in netbeans, I see that this netbeans simple composes a command line for
git and has git execute that. That work for just fine, at least for cloning.

git init C:\Users\hom\NetBeansProjects\testeasypom
git fetch g...@github.com:jristretto/testeasypom.git
+refs/heads/main:refs/remotes/origin/main
+refs/heads/v11:refs/remotes/origin/v11 +refs/heads/v17:refs/remotes/origin/v17
+refs/heads/v21:refs/remotes/origin/v21
+refs/heads/v24:refs/remotes/origin/v24


my global setup for git is (~/.gitconfig) is













*PS C:\Users\hom\NetBeansProjects\testeasypom> cat ~/.gitconfig[filter
"lfs"]        required = true        clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f        process = git-lfs
filter-process[user]        name = Pieter van den Hombergh        email =
pieter.van.den.hombe...@gmail.com
<pieter.van.den.hombe...@gmail.com>[core]        autocrlf = false
sshCommand = "C:/Program\\ Files/Git/usr/bin/ssh.exe"PS
C:\Users\hom\NetBeansProjects\testeasypom>*

Met vriendelijke groet,
Pieter van den Hombergh.
Kerboschstraat 12
5913 WH Venlo


On Wed, Jun 25, 2025 at 1:49 PM <avaluedcusto...@freenet.de> wrote:

> 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: pieter.van.den.hombe...@gmail.com
>  Gesendet: 25.06.2025 11:45 Uhr
>  An: avaluedcusto...@freenet.de
>  Kopie: users@netbeans.apache.org
>  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 <avaluedcusto...@freenet.de>:
> 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: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> 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: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Reply via email to