Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error connecting to mac from visual studio

enter image description hereI have the right IP address although when I go to connect to my mac I get this error message:

An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: cat: /Users/cbcb/Library/Caches/Xamarin/XMA/Keys/---------------------: No such file or directory

I have tried creating a new admin user, I have remote login enabled, and when I go to the following location above the folder is blanked.

enter image description here

like image 856
coder123 Avatar asked Feb 19 '20 22:02

coder123


People also ask

Is Visual Studio Compatible with Mac?

Visual Studio 2022 for Mac brings a new, fully native macOS UI built on .NET 6, plus native support for the Apple M1 chip. It all adds up to faster, more fluid daily coding time for you.

How do I import a Visual Studio project into Mac?

How to enable. To enable this feature, open Preferences via Visual Studio > Preferences and navigate to Text Editor > IntelliSense. Check the box Show import items to enable additional items in IntelliSense.

How do I run my Visual Studio code on Mac?

Launching from the command line# You can also run VS Code from the terminal by typing 'code' after adding it to the path: Launch VS Code. Open the Command Palette (Cmd+Shift+P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.


2 Answers

I fixed this problem by manually importing the public ssh key in MonoTouch folder into the authorized_keys on mac.
To do so :
1- Copy the content of 'id_rsa.pub' located in "%localAppData%/Xamarin/Monotouch"
2- In your MAC (assuming that it is running on a VM), go to "/Users//.ssh/Authorized_keys" Open the file, paste the key in a new line, save then close.
3- Now go back to your Visual Studio and try again, you'll be able to pair your macOS
Enjoy

like image 101
xSodia Avatar answered Oct 11 '22 23:10

xSodia


  1. Close Visual Studio
  2. Delete C:\Users\UserName\AppData\Local\Xamarin\MonoTouch
  3. Start Visual Studio
like image 43
Andrei Avatar answered Oct 11 '22 23:10

Andrei