Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 won't connect via SSH on macOS after upgrading to Ventura

I have a working setup with Visual Studio 2022 17.3.6 on a Windows laptop and Mac M1 running macOS 12.6.1. When I run an Uno project or a Xamarin project it connects as expected to the Mac. I just upgraded the Mac to Ventura and am no longer able to connect. I understand the only thing that has changed is moving to Ventura, but am stuck on how to proceed.

The exact error is:

An error occurred while trying to establish an SSH connection with SSH keys to 'ip:22'

I have tried the following:

  • SSH from my laptop in Ubuntu for Windows- worked
  • SSH from another computer- worked
  • Verified Remote Login settings on Mac
  • Ran ssh username@macip 'ls' and it worked
  • Deleted %LOCALAPPDATA%\Xamarin\Monotouch - no change
  • Reviewed Visual Studio log- no additional information
  • Reviewed log on Mac and no additional information
like image 784
Jt5 Avatar asked Sep 06 '25 23:09

Jt5


1 Answers

One reason could be the fact that Ventura comes with OpenSSH_9.0p1. Starting with OpenSSH v8.8, RSA signatures using SHA-1 are disabled:

This release disables RSA signatures using the SHA-1 hash algorithm by default”.

Fix SSH(RSA SHA-1) not working in macOS Ventura

  1. edit /etc/ssh/sshd_config and save it:

    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa
    
  2. reboot sshd

macOS Monterey and older versions used OpenSSH v8.6 or older, respectively.

like image 65
monagano Avatar answered Sep 08 '25 15:09

monagano