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

Cannot push to remote repository in ED25519 format #3467

Closed
1 task done
henryx opened this issue Oct 14, 2021 · 3 comments
Closed
1 task done

Cannot push to remote repository in ED25519 format #3467

henryx opened this issue Oct 14, 2021 · 3 comments

Comments

@henryx
Copy link

henryx commented Oct 14, 2021

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
git version 2.33.1.windows.1
cpu: x86_64
built from commit: 05d80adb775077d673fab685009ede4a1003ed92
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

Windows 11 64-bit

cmd /c ver

Microsoft Windows [Versione 10.0.22000.258]

  • What options did you set as part of the installation? Or did you choose the
    defaults?
type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Core
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** I've installed Git via chocolatey **

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

** I've used mainly Powershell for running Git, but problem exists also in cmd.exe**

git push
  • What did you expect to occur after running these commands?

** Push commits to e.g. Bitbucket server **

  • What actually happened instead?

** Unable to negotiate with 2406:da00:ff00::34cc:ea4a port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
fatal: Could not read from remote repository.
**

Problem seems caused to the format of my key (ED25519)

@dscho
Copy link
Member

dscho commented Oct 14, 2021

Git for Windows v2.33.1 includes OpenSSH v8.8, which might fix the issue (you can try the Portable Git edition first, to make sure that it fixes your problem, before replacing your installation by running the installer).

@henryx
Copy link
Author

henryx commented Oct 14, 2021

@dscho I'm sorry, I've pasted wrong output. Problem occours with 2.33.1 version, in 2.33.0 problem is not present. I'll edit the issue

@dscho
Copy link
Member

dscho commented Oct 14, 2021

Problem occours with 2.33.1 version, in 2.33.0 problem is not present.

Ah, that makes more sense.

no matching host key type found. Their offer: ssh-rsa,ssh-dss

This seems to be the same issue as #3468. OpenSSH v8.8 does not allow weak keys by default. A workaround can be found here: #3468 (comment)

@dscho dscho closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants