I get the following error trying to push / pull to our local Git Serrver / BitBucket installation after upgrading VS to 2022 17.2.4
Unable to negotiate with 192.168.16.140 port 7999: no matching host key type found. Their offer: ssh-rsa
I followed the instructions in the post below but still no joy, what am I doing worng here!...
Have tried adding this to the ssh_config file
Host git@devtools:7999 HostkeyAlgorithms ssh-rsa PubkeyAcceptedAlgorithms ssh-rsa
Host 192.168.16.140:7999 HostkeyAlgorithms ssh-rsa PubkeyAcceptedAlgorithms ssh-rsa
CodePudding user response:
Brew update of openssl brings in the latest version which has deprecated the ssh-rsa
algorithm. Note
Add this to your ssh config to re-enable ssh-rsa
OR downgrade openssl to the previous version.
Host *
HostkeyAlgorithms ssh-rsa
PubkeyAcceptedAlgorithms ssh-rsa
ssh config file will be ~/.ssh/config
or /etc/ssh/ssh_config
.
Thanks me by giving upvote.Be bless.
CodePudding user response:
In C/Users/{UName}/.ssh folder
Create a config file per this post