Home > Net >  VS Pair to mac - fails to ssh
VS Pair to mac - fails to ssh

Time:11-04

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.

CodePudding user response:

What works is following these steps:

  1. add these lines to /etc/ssh/sshd_config:
HostkeyAlgorithms  ssh-rsa
PubkeyAcceptedAlgorithms  ssh-rsa
  1. save the file
  2. restart sshd
  3. restart Visual Studio

The original recipe was provided here: Visual Studio 2022 won't connect via SSH on macOS after upgrading to Ventura

  • Related