从Visual Studio连接到Mac时出错 [英] Error connecting to mac from visual studio

查看:202
本文介绍了从Visual Studio连接到Mac时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有正确的IP地址,但是当我连接到Mac时却收到此错误消息:

I 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

我尝试创建一个新的admin用户,启用了远程登录,并且当我转到文件夹上方的以下位置时,该文件夹变为空白.

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.

推荐答案

我通过手动将MonoTouch文件夹中的公共ssh密钥导入到Mac上的authorized_keys中来解决此问题.
为此:
1-复制位于%localAppData%/Xamarin/Monotouch"中的"id_rsa.pub"的内容
2-在您的MAC(假设它正在VM上运行)中,转到"/Users//.ssh/Authorized_keys",打开文件,将密钥粘贴到新行中,保存然后关闭.
3-现在返回您的Visual Studio,然后重试,您将能够配对macOS
享受

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

这篇关于从Visual Studio连接到Mac时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆