Share via

Cannot pair with mac running Ventura

Michael Quinn 0 Reputation points
2023-06-20T02:48:40.7066667+00:00

We have a Windows Server 2016 machine that we use to build our Xamarin projects. We recently upgraded our macOS to Ventura and since have not been able to pair Visual Studio to the mac. I have followed the troubleshooting steps found here and am now submitting question as requested by the Xamarin GitHub repository issue tracker.

What doesn't work

We experience different types of failure depending on version of Visual Studio that we attempt to use.

VS 2022 17.6.3

Pairing fails before asking for credentials for the mac with the error:

Couldn't resolve mac 'ipAddress'

There is no obvious problem identified in the verbose logs.

VS 2022 17.2 LTC

Pairing fails after credentials for the mac have been entered with the error:

An error occurred while trying to establish an SSH connection with SSH keys to 'ipAddress:portNumber'

The verbose logs indicate that VS is attempting to use rsa to connect to the mac which is not supported on macOS Ventura:

Executing SSH command 'ssh-keygen -b 2048 -t rsa -m PEM -f "/Users/<user>/Library/Caches/Xamarin/XMA/Keys/<guid1>" -q -N "<guid2>"'...

I have run through the solutions offered here but have not been able to resolve the issue.

I would rather not enable rsa on our Mac but it doesn't work anyway. I can manually install the latest version of OpenSSH however there is no change. I cannot remove OpenSSH from the Windows Servier 2016 OS as it is not listed in the 'Optional Features'.

What does work

Other machines

I have confirmed on multiple other machines running Windows 10 and Windows 11 with various installations of Visual Studio including 17.6.3 that the Mac can be paired with it's current configuration.

These working instances are using ecdsa according to the logs:

Executing SSH command: 'ssh-keygen -t ecdsa -b 521 -m PEM -f "/Users/<user>/Library/Caches/Xamarin/XMA/Keys/<guid1>" -N "<guid2>" -q'

SSH

I am able to ssh into the Mac from the Windows Server 2016 machine that cannot pair.

Question

Does anyone know:

  1. how to resolve this issue; or
  2. how to ensure that VS uses the ecdsa cryptographic algorithm when pairing with a mac?

Thanks in advance.

Developer technologies | .NET | Xamarin

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.