Issue
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
Solution
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
edit /etc/ssh/sshd_config and save it:
HostkeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa
reboot sshd
macOS Monterey and older versions used OpenSSH v8.6 or older, respectively.
Answered By - monagano Answer Checked By - David Marino (WPSolving Volunteer)