Open ReedCao opened 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?
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?
Same problem as #750
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?