Visual Studio 2015 - 无法连接到Xamarin Mac Agent - 为用户配置SSH时发生意外错误[MY_USER]

Kev*_*vin 7 xamarin.ios xamarin visual-studio-2015

当我尝试连接到Mac代理时,我收到以下错误:为用户配置SSH时发生意外错误[MY_USER](下面的完整日志)

我在"故障排除"页面上尝试了所有内容:https: //developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/

包括"UseDNS no".

运行Xamarin的网络上有3台Mac Minis.我们有另一台可以使用相同凭据连接到所有3台的开发机器.从有问题的Windows机器,我可以ping mac,我可以使用Putty和Git Bash成功SSH到它.SSH似乎工作正常.我在Windows机器上尝试了不同的用户帐户(没有)我尝试使用列表中的Mac,使用IP地址手动输入机器名称.(没有)Mac没有防火墙设置.我试过在Windows机器上禁用防火墙.我可以确认,当我尝试使用错误的凭据时,Visual Studio会正确地提醒我,但使用正确的凭据会给我带来"意外错误".我不确定这两台机器有什么不同.

我已多次重启所有涉及的机器.我尝试在Dev机器上重新安装Visual Studio.

我没有想法.

任何帮助,将不胜感激.

从Visual Studio完整记录:

  Xamarin Information: 0 : [2016-06-13 18:19:35.0373] Xamarin - 4.1.0.530-cycle7-baseline+2e39740
  Xamarin.VisualStudio.Activation.AccountManager Information: 0 : [2016-06-13 18:19:35.1813] VS2015 Professional
  Xamarin.VisualStudio.ActivationManager Information: 0 : [2016-06-13 18:19:35.2483] No license found for iOS
  Xamarin.VisualStudio.ActivationManager Information: 0 : [2016-06-13 18:19:35.3113] Running license sync for iOS
  Xamarin.VisualStudio.ActivationManager Information: 0 : [2016-06-13 18:19:35.3783] Not logged in, using iOS VSProfessional
  Xamarin.VisualStudio.ActivationManager Information: 0 : [2016-06-13 18:19:35.4803] No license found for Android
  Xamarin.VisualStudio.ActivationManager Information: 0 : [2016-06-13 18:19:35.6165] Running license sync for Android
  Xamarin.VisualStudio.ActivationManager Information: 0 : [2016-06-13 18:19:35.7116] Not logged in, using Android VSProfessional
  Xamarin.VisualStudio.IOS.MonoTouchDeviceSettings Verbose: 0 : [2016-06-13 18:21:35.3445] BeginEdit
  Xamarin.VisualStudio.IOS.MonoTouchDeviceSettings Verbose: 0 : [2016-06-13 18:21:35.4495] EndEdit
  Xamarin.VisualStudio.TastyPackage Information: 0 : [2016-06-13 18:21:35.5355] Hooked up SDB tracing adapter
  Xamarin.VisualStudio.TastyPackage Information: 0 : [2016-06-13 18:21:35.6155] Initialization finished
  Xamarin.VisualStudio.IOS.XamarinIOSPackage Warning: 0 : [2016-06-13 18:21:35.6975] Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage.
  Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2016-06-13 18:21:35.7815] MDAddinsHash: 33f406fa2dcf214012c78cb846585f062b2e1d24

  Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-06-13 18:21:56.2158] MacServer State transition from DisconnectedState to SshConnectingState on PLA-DEV-MAC03.local (MY.IP.ADDRESSS)
  Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-06-13 18:22:12.7090] MacServer State transition from SshConnectingState to DisconnectedState on PLA-DEV-MAC03.local (MY.IP.ADDRESSS)
  Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-06-13 18:22:12.8170] An unexpected error occurred while trying to log in. Please try again.
  Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-06-13 18:22:12.9140] Disconnected from Mac PLA-DEV-MAC03.local (MY.IP.ADDRESSS)
  Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-06-13 18:22:13.0160] An unexpected error occurred while configuring SSH for the user [MY_USER]
  Xamarin.Messaging.Exceptions.MessagingException: An unexpected error occurred while configuring SSH for the user [MY_USER] ---> Renci.SshNet.Common.SshOperationTimeoutException: Session operation has timed out
     at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
     at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
     at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Session session)
     at Xamarin.Messaging.Client.Ssh.MessagingAuthenticationMethod.Authenticate(Session session)
     at Renci.SshNet.AuthenticationMethod.Renci.SshNet.IAuthenticationMethod.Authenticate(ISession session)
     at Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, ICollection`1 allowedAuthenticationMethods, SshAuthenticationException& authenticationException)
     at Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
     at Renci.SshNet.ConnectionInfo.Authenticate(ISession session)
     at Renci.SshNet.Session.Connect()
     at Renci.SshNet.BaseClient.Connect()
     at Xamarin.Messaging.Client.Ssh.SshMessagingConnection.ConnectSsh()
     at Xamarin.Messaging.VisualStudio.MessagingService.<ConfigureHostAsync>d__70.MoveNext()
     --- End of inner exception stack trace ---
     at Xamarin.Messaging.VisualStudio.MessagingService.<ConfigureHostAsync>d__70.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
     at Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState.<ConnectAsync>d__8.MoveNext() in C:\Users\builder\data\lanes\3345\2e397405\source\XamarinVS\src\Core\VisualStudio.IOS\Messaging\State\DisconnectedState.cs:line 64
Run Code Online (Sandbox Code Playgroud)

Nas*_*ash 17

在我在Xamarin Mac Agent窗口的Add Mac中手动输入IP地址后,它对我有用(而不是使用默认的机器名称).