Issue
When I'm trying pair to my mac, I get the following: An error occurred while trying to establish an SSH connection with SSH keys to 'IP'
. However, using ssh to connect to my mac through cmd it works just fine but for some reason VS fails to do this.
Solution
What works is following these steps:
- add these lines to
/etc/ssh/sshd_config
:
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
- save the file
- restart sshd
- restart Visual Studio
The original recipe was provided here: Visual Studio 2022 won't connect via SSH on macOS after upgrading to Ventura
Answered By - Alex Kay Answer Checked By - Mary Flores (WPSolving Volunteer)