2017-01-23 11 views
0

iOS用のXamarinを実行するのに必要なOSX 10.11を備えた完全にセットアップされたMacがあります。
私は、Windows 10ラップトップのVisual Studio 2015にインストールされており、次のエラーを持っている:MacにVisual Studio(w Xamarin)を接続

Unable to authenticate with ssh keys. Please try to log in with credentials first

その後、私はノートPCの最新のバージョンまでと同じ、W7 PC VS2015にインストールし、試してみました同じネットワークの下で同じ接続:完璧に動作します。 すべてが安定したチャネルです。
ラップトップ上のファイアウォールは、他のPCと同様に、XamarinがLAN上で通信できるようにします。
ラップトップとPCから、ssh経由でリモートから1秒以内にログインできます。ここで

は、ラップトップからのログです:

Xamarin Information: 0 : [2017-01-23 21:54:24.1947] Xamarin - 4.2.2.11-cycle8+00fa5cc 
Xamarin.VisualStudio.Activation.AccountManager Information: 0 : [2017-01-23 21:54:24.4013] VS2015 Community 
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.6238] No license found for iOS 
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.7790] Running license sync for iOS 
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.9327] Not logged in, using iOS Community 
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.1185] No license found for Android 
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.2981] Running license sync for Android 
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.4847] Not logged in, using Android Community 
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:25.7654] Hooked up SDB tracing adapter 
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:25.9455] Initialization finished 
Xamarin.VisualStudio.Android.XamarinAndroidPackage Warning: 0 : [2017-01-23 21:54:26.1277] Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage 
Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService Warning: 0 : [2017-01-23 21:54:26.6038] An unexpected error occurred trying to initialize Android Designer. 
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:37.7048] Hooked up SDB tracing adapter 
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:37.8834] Initialization finished 
Xamarin.VisualStudio.IOS.XamarinIOSPackage Warning: 0 : [2017-01-23 21:54:38.0746] Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage. 
Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2017-01-23 21:54:38.2597] MDAddinsHash: c92d0626d347aaa02839689eaac2961d24c9f446 

Xamarin.VisualStudio.IOS.Bonjour.BonjourDiscovery Information: 0 : [2017-01-23 21:54:40.8859] Bonjour service 'Gian iMac' did not respond with its IP address. 
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:54:58.6464] MacServer State transition from DisconnectedState to SshConnectingState on Gian-iMac.local (192.168.1.100) 
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2017-01-23 21:55:09.3709] Starting connection to Mac Gian-iMac.local... 
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2017-01-23 21:55:16.7865] Unable to authenticate with SSH keys. Please try to log in with credentials first 
Xamarin.Messaging.VisualStudio.Exceptions.MessagingAuthenticationException: Could not authenticate the user 'gianventotto' with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH. More details: Permission denied (publickey). ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey). 
    in Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session) 
    in Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory) 
    in Renci.SshNet.Session.Connect() 
    in Renci.SshNet.BaseClient.Connect() 
    in Xamarin.Messaging.Client.Ssh.SshMessagingConnection.ConnectSsh() 
    in Xamarin.Messaging.VisualStudio.MessagingService.<ConnectAsync>d__71.MoveNext() 
    --- Fine della traccia dello stack dell'eccezione interna --- 
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2017-01-23 21:55:17.1607] Unable to authenticate with SSH keys. Please try to log in with credentials first 
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:55:17.3478] MacServer State transition from SshConnectingState to DisconnectedState on Gian-iMac.local (192.168.1.100) 
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:55:17.5335] Disconnected from Mac Gian-iMac.local (192.168.1.100) 

そしてここでは、対応するMAC sshdログです:

Jan 23 21:54:49 DellGian sshd[432]: Invalid user a from fe80::684c:a641:25d5:499a%en1 
Jan 23 21:54:49 DellGian sshd[432]: input_userauth_request: invalid user a [preauth] 
Jan 23 21:54:49 DellGian sshd[432]: Connection closed by fe80::684c:a641:25d5:499a%en1 [preauth] 
Jan 23 21:54:49 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.B87D7BAE-892F-4EB8-91E9-FD74A3B0C534[432]): Service exited with abnormal code: 255 
Jan 23 21:55:06 DellGian sshd[434]: Accepted keyboard-interactive/pam for gianventotto from fe80::684c:a641:25d5:499a%en1 port 54361 ssh2 
Jan 23 21:55:08 DellGian sshd[438]: Accepted keyboard-interactive/pam for gianventotto from fe80::684c:a641:25d5:499a%en1 port 54366 ssh2 
Jan 23 21:55:09 DellGian sshd[437]: Received disconnect from fe80::684c:a641:25d5:499a%en1: 11: Connection terminated by the client. 
Jan 23 21:55:09 DellGian sshd[437]: Disconnected from fe80::684c:a641:25d5:499a%en1 
Jan 23 21:55:09 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.3A1CBE22-0A14-479F-AB4B-47981092D26C[434]): Service exited with abnormal code: 255 
Jan 23 21:55:09 DellGian sshd[441]: Received disconnect from fe80::684c:a641:25d5:499a%en1: 11: Connection terminated by the client. 
Jan 23 21:55:09 DellGian sshd[441]: Disconnected from fe80::684c:a641:25d5:499a%en1 
Jan 23 21:55:09 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.0EEDF8CA-4DBF-4EF5-BCC8-00CF25C16C83[438]): Service exited with abnormal code: 255 
Jan 23 21:55:28 DellGian sshd[445]: Connection reset by fe80::684c:a641:25d5:499a%en1 [preauth] 
Jan 23 21:55:28 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.486B5640-1C66-40F0-AFEC-44D3C54C39E9[445]): Service exited with abnormal code: 255 

は、私はちょうどPCを使うべきではないでしょうか。いいえ、Visual Studioを起動するには約10分かかります! ご協力いただきありがとうございます。

+0

コマンドラインからWindowsからMacにsshセッションを開き、これが動作するかどうか確認してください。 – apineda

+0

@apinedaそれは動作する、私はそれを書いたと思った – Gianlu28

答えて

0

は、それはあなたの勝利10のラップトップは、そのキーが~/.ssh/Users/<username>/.sshのショートカット)でお使いのMac上のあなたのauthorized_keysファイルに追加された、おそらく(またはしない)パスワードなしログインのための場所でSSHキーを持っている、とのように聞こえるが、そのログインでSSHキーが動作していない可能性があります。上記ログの該当する行:

Xamarin.Messaging.VisualStudio.Exceptions.MessagingAuthenticationException: Could not authenticate the user 'gianventotto' with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH. More details: Permission denied (publickey). ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey).

たぶん、お使いのMac上のauthorized_keysファイルから勝利10 SSHキーを削除しようとする代わりに、ユーザー名とパスワードを使用して、VSからログイン?

+0

私はすでに成功していない試したが、ここで提供されているソリューションのように聞こえるhttp://stackoverflow.com/a/36689556/5313090、 !たぶん私はスワップファイルも削除したので? – Gianlu28

関連する問題