Search code examples
macosvisual-studiossh

VS Pair to mac - fails to ssh


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:

    1. Add these lines to /etc/ssh/sshd_config:
      HostkeyAlgorithms +ssh-rsa
      PubkeyAcceptedAlgorithms +ssh-rsa
      
    2. Save the file.
    3. Restart sshd.
    4. Restart Visual Studio.

    The original recipe was provided here in this answer.