Home > Back-end >  Unable to negotiate with 192.168.16.140 port 7999: no matching host key type found. Their offer: ssh
Unable to negotiate with 192.168.16.140 port 7999: no matching host key type found. Their offer: ssh

Time:07-02

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

Visual Studio 2022 git error Unable to negotiate with {0} port {1}: no matching host key type found. Their offer: 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

How to set up an SSH config-file for beginners

  • Related