godot-git-plugin icon indicating copy to clipboard operation
godot-git-plugin copied to clipboard

Godot 4 RC 5 and plugin v3.0.0-beta2 Error -16

Open GodoterFR opened this issue 2 years ago • 10 comments

Windows 10 My Git install :

  • git config --global user.name "Kevin" No password No passphrase Remote github with SSH Plugin install by AssetLib

vcs

GitPlugin: Performing push to github core/variant/variant_utility.cpp:880 - GitPlugin: Could not connect to remote "github". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -16: Failed to retrieve list of SSH authentication methods: Failed getting response in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L532

I can't push/pull in Godot. I can push/pull in Git.

GodoterFR avatar Feb 25 '23 21:02 GodoterFR

Could you confirm if the github remote on your repository is indeed a SSH remote endpoint and not an HTTPS one?

Plus we have a PR #149 which will help remediate some of the causes behind this issue

twaritwaikar avatar Feb 26 '23 10:02 twaritwaikar

I confirm i use SSH. I check PR #149 but I don't understand what I should do. Should I update libssh2 manually and recompile? I don't think I'm competent enough.

GodoterFR avatar Feb 26 '23 20:02 GodoterFR

I'm not sure what GitPlugin wants, but for SSH access to GitHub the SSH username to use should be git, not your real username, like in [email protected]:godotengine/godot-git-plugin.git...?

RobertoMaurizzi avatar Feb 28 '23 07:02 RobertoMaurizzi

I just tested it and it's not that. I would wait, it's not a major thing, I can always push with Git. I'm not stuck. For the moment there are more important things for Godot 4.0.

GodoterFR avatar Feb 28 '23 07:02 GodoterFR

I'd agree for myself (I never use git UIs in my daily job) but if you have collaborators that aren't technical enough to use git or another interface to push/pull, a working integration becomes quite important.

In the meantime I should try to see if I can make the dialogs work correctly with HIDPI/4K screens 😅

On Tue, Feb 28, 2023, 16:54 Kevin @.***> wrote:

I just tested it and it's not that. I would wait, it's not a major thing, I can always push with Git. I'm not stuck. For the moment there are more important things for Godot 4.0.

— Reply to this email directly, view it on GitHub https://github.com/godotengine/godot-git-plugin/issues/164#issuecomment-1447727446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADOIZT7D6OKETSVHWENMFTWZWVMBANCNFSM6AAAAAAVICMOLQ . You are receiving this because you commented.Message ID: @.***>

RobertoMaurizzi avatar Feb 28 '23 09:02 RobertoMaurizzi

Also experiencing this issue. Referring to

I'm not sure what GitPlugin wants, but for SSH access to GitHub the SSH username to use should be git, not your real username

Most git users set there config user name to either their real name or there github username, it shouldn't be a requirement to change this to use the plugin. This may just be a misunderstanding though as git generates ssh like the following: [email protected]:RyanCross/godot-game.git

RyanCross avatar Mar 05 '23 19:03 RyanCross

got pretty much the same issue here :/

wschwabauer avatar Mar 07 '23 21:03 wschwabauer

Im seeing a similar issue here as well. I run a local Gitea server for locally hosted VCS, and even though I can authenticate via the cmd on my pc using ssh keys, the Godot VCS Plugin comes back with a -16 error

HStep20 avatar Mar 08 '23 02:03 HStep20

After quite a bit more testing and searching, I finally got git to connect via an http connection, instead of SSH, using an access token or password. For anyone struggling, try using the web url of your repository instead of the git url - For my personal git server, it looked like http://IP_ADDRESS:3000/hstep20/godot-4-git-test. For most using github, it would be like https://github.com/godotengine/godot-git-plugin

While its not ideal, at least it works.


While researching, I stumbled across this comment on a gitea issue showing the same problem I was having when trying to verify my ssh keys via the cmd. Like they mentioned, the windows command line seems to have problems properly creating a verification signature for SSH keys. I was able to replicate the results and see that the windows cmd wouldn't properly verify a token with my git ssh setup, but WSL was able to.

It may be nothing at all, but it could be connected to why the ssh plugin is struggling on windows (for me at least). Perhaps others here can chime in on their OS, and your OS of choice could help narrow down the exact problem.

HStep20 avatar Mar 08 '23 04:03 HStep20

I've been dealing with this same issue (-16) all night, and reading a lot of issues. HTTPS has worked, its just annoying to type in my PAT every single time I launch Godot.

catgirlcataclysm avatar Aug 16 '23 03:08 catgirlcataclysm