Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always getting an Error -1 on attempted SSH connection #130

Open
HStep20 opened this issue Oct 24, 2022 · 4 comments
Open

Always getting an Error -1 on attempted SSH connection #130

HStep20 opened this issue Oct 24, 2022 · 4 comments
Labels

Comments

@HStep20
Copy link

HStep20 commented Oct 24, 2022

With every attempt I make to connect to my remote repository, I keep getting the error - Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -1: failed to start SSH session: Unable to exchange encryption keys

Im hosting my own Gitea instance and trying to version my work to the server it runs on, but godot refuses to connect. The ssh keys are defined correctly and confirmed to be working through the cmd, and I believe the User portion of the Remote Login area is as well.

Initially, I thought it could be some Gitea messery, but after testing two other ways to connect to the server, I don't think thats the case. Ive done some thorough testing, and am able to connect via cmd and through VS Code, and was able to push/pull, as well as Remote Add via the other two applications.

I am on Godot 3.5.1 stable and v2.1.0 of the plugin

@twaritwaikar
Copy link
Contributor

twaritwaikar commented Oct 24, 2022

Is it possible to try enabling the DH key exchange algorithm while SSH-ing to your Gitea instance? I presume it would be a server side config.

We use libssh2 1.1 and I am reading that it apparently only supports DH and OpenSSH has it disabled by default, according to this - https://stackoverflow.com/questions/45882200/unable-to-exchange-encryption-keys

EDIT: Also the key exchange algorithms section of this page only seems to mention DH kex algorithms - https://www.libssh2.org/

@Calinou Calinou added the bug label May 17, 2023
@Calinou
Copy link
Member

Calinou commented May 17, 2023

@Calinou
Copy link
Member

Calinou commented Jul 9, 2023

@HStep20 Which key format does your SSH key use? Only RSA keys are currently supported, not Ed25519.

@HStep20
Copy link
Author

HStep20 commented Jul 10, 2023

I believe they are the Ed25519 format. I can attempt to use an RSA key and see if I have a similar issue. The HTTP login has been working in the meantime for me though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants