6

在此处输入图像描述我有正确的 IP 地址,但当我连接到我的 mac 时,我收到以下错误消息:

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

我尝试创建一个新的管理员用户,我启用了远程登录,当我转到文件夹上方的以下位置时,该文件夹为空白。

在此处输入图像描述

4

2 回答 2

10

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

于 2020-02-29T16:21:46.637 回答
0

听起来您可能需要将其重定向到您的默认.ssh密钥位置。我在我的 Mac 上是~/.ssh/known_hosts. 为了安全起见,还请清空您的 SSH 密钥。

于 2020-02-19T22:42:40.310 回答