當我嘗試連接到Mac Agent時,出現以下錯誤: 配置SSH時發生意外錯誤用戶[MY_USER] (以下完整日誌)Visual Studio 2015 - 無法連接到Xamarin Mac Agent - 爲用戶配置SSH時發生意外錯誤[MY_USER]
我嘗試了故障排除頁面上的所有內容: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/
包括 「UseDNS沒有」。
在運行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
檢查您的Xamarin日誌,而不是Visual Studio。我更早地檢查了我的資料,發現一個很明顯的錯誤:「在Mac Evans-Mac.local(192.168.2.19)上安裝的Xamarin.iOS(版本9.6)與當地的Xamarin.iOS 9.8不兼容。」 –
我也有同樣的問題,Xamarin.iOS版本不兼容。檢查Xamarin日誌。 –
這是從Xamarin日誌:%LOCALAPPDATA%\ Xamarin \日誌 – Kevin