rancher / fleet

Deploy workloads from Git to large fleets of Kubernetes clusters
https://fleet.rancher.io/
Apache License 2.0
1.5k stars 219 forks source link

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

Open ReedCao opened 2 years ago

ReedCao commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Same problem as #750