coder123
coder123

Reputation: 247

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

Upvotes: 6

Views: 6225

Answers (4)

Richard
Richard

Reputation: 11

If you try and delete the directory: Delete C:\Users\UserName\AppData\Local\Xamarin\MonoTouch

When you relaunch visual studio and it prompts for your Apple login info you need to use the login information for the user who is currently logged in on the Mac. If you use a different account then the current user it will fail.

Upvotes: 1

Andrei
Andrei

Reputation: 115

  1. Close Visual Studio
  2. Delete C:\Users\UserName\AppData\Local\Xamarin\MonoTouch
  3. Start Visual Studio

Upvotes: 4

xSodia
xSodia

Reputation: 505

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

Upvotes: 10

TheN00bBuilder
TheN00bBuilder

Reputation: 124

Sounds like you may need to redirect that to your default .ssh key location. Mine on my Mac is ~/.ssh/known_hosts. Also blank out your SSH keys please, just for security.

Upvotes: 0

Related Questions