Techies Adsense

Wednesday, 17 August 2016

Could not authenticate the user with SSH keys Xamarin-MAC OS

I was getting error: Could not authenticate the user 'test_user' with SSH keys. with Xamarin and MAC OS Connectivity.


Complete Error:
  Xamarin-Could not authenticate the user 'test_user' 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).
Xamarin.Messaging.VisualStudio.MessagingAuthenticationException: Could not authenticate the user 'test_user' 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).
   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()


Solutions:


sh-3.2# chmod -R 755 /Users/graycell/.ssh/

sh-3.2# chmod 644 /Users/graycell/.ssh/authorized_keys

Its works for me Once connected to the Server Visual Studio with MAC you can revert the 
permission. 

Detailed Description given here i tried to followed the same.


Thanks for your kind Visit.


No comments: