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

no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1 #773

Open
ReedCao opened this issue May 16, 2022 · 2 comments

Comments

@ReedCao
Copy link

ReedCao commented May 16, 2022

I have created a git repo which uses ssh to connect.

got the error "no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1".

try to attach to the docker, log in as user root.

created a confi file under root/.ssh. has content

KexAlgorithms +diffie-hellman-group1-sha1

I can use the same command in the shell

git ls-remote MYREPO refs/heads/master

I don't get any error.

however, still get the error in git-repo of fleet.

I guess the config file doesn't work in this case. however, what is the correct to way to make it work?

@ReedCao
Copy link
Author

ReedCao commented May 17, 2022

Found the solution.
https://devblogs.microsoft.com/devops/supporting-sha-2-algorithm-in-ssh-on-azure-devops/

but still wonder if I can config this in client side gitrepo?

@dtrouillet
Copy link

Same problem as #750

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

No branches or pull requests

3 participants