Connect to Mac Issue: Couldn't Connect to X.X.X.X. Please try again.



This issue can happen when you first try to connect your Visual Studio to the Xamarin Mac Agent hosted by MacinCloud.

During the checkout process it is important to have selected the Enable Remote Build Port (SSH) add-on

If you missed this part you can enable the add-on yourself by using our User Portal. Please create a new account using the same email you used to purchase your subscription. Once you have created an account please do the following:

  • Select your user profile in the top right corner 
  • In the drop-down menu select My Subscriptions
  • You will see a list of your current active subscriptions, please select the EDIT button on the subscription you wish to update
  • Select YES on the Enable Remote Build Port (SSH) option
  • Click UPDATE
This will enable the Remote Login for your user on the server.


If you have any problems please create a ticket with our Support Help Desk to have this feature enabled.

If you have this feature enabled and the issue persists please check the following:
  • Your firewall is off or not blocking port 22
  • You entered the IP address correctly and not the server name (the IP address is found in the email with your server credentials)
  • You are entering the right credentials
During the first time you are connecting Visual Studio to the Xamarin Mac Agent you will need to login to the server and open Xamarin Studio and at the same time try to connect to the Xamarin Mac Agent from your Visual Studio Project.



"Unable to connect to Address='x.x.x.x' with User='xxxx'"


Known causes:

Xamarin 4.1 security feature – This error will happen if you downgrade to Xamarin 4.0 after using Xamarin 4.1 or higher. In this case the error will be accompanied by the additional warning "Private key is encrypted but passphrase is empty". This is an intentional change due to a new security feature in Xamarin 4.1. 

 

Recommended fix: 

Delete id_rsa andid_rsa.pub from %LOCALAPPDATA%\Xamarin\MonoTouch, and then reconnect to the Mac build host.

 

Source: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/#Troubleshooting_Build_and_Deployment_Errors