Bug 49059 - "Unable to authenticate with SSH keys. Please try to log in with credentials first" - Cannot connect to a new Mac
Summary: "Unable to authenticate with SSH keys. Please try to log in with credentials ...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: XMA ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: High blocker
Target Milestone: 4.3.0 (C9)
Assignee: Bugzilla
Depends on:
Reported: 2016-12-05 23:16 UTC by Jose Gallardo
Modified: 2016-12-06 05:15 UTC (History)
2 users (show)

Is this bug a regression?: Yes
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jose Gallardo 2016-12-05 23:16:26 UTC
There was a side-effect on a fix, which broke the XVS ability to generate SSH Keys.
As a consequence, we cannot longer connect to a new Mac in a clean environment.

# Steps to reproduce the issue:

1. Delete the files from "%localappdata%\Xamarin\MonoTouch" (if any, this recreates the clean status for SSH Keys).
2. Open VS
3. Go to "Tools - Options - Xamarin - iOS Settings - Find Xamarin Mac Agent"
4. If there is any known server, right click on it, and forget it.
5. Try to reconnect to the Mac.
6. Enter credentials.

# Expected result:

VS should get connected to the Mac and the server added as a Known server.

# Actual result

VS cannot create the SSH Keys, and shows an error message: "Unable to authenticate with SSH keys. Please try to log in with credentials first".
But any retry entering credentials will keep showing the same error message.

# Environment info

Xamarin VS (e738933)
Comment 1 Jose Gallardo 2016-12-06 03:53:36 UTC
This issue was fixed on:
XVS (7c3dcf2)
Comment 2 Shruti 2016-12-06 05:15:15 UTC
Verification Status:

I have checked this issue on the Fixed build mentioned in comment1, following by the steps mentioned in comment0 and observed that this issue is fixed. Successfully able to connect and Debug/Run iOS Application on MAC build host.

Supplement Info:
XMA Gist: https://gist.github.com/anonymous/f636b936d463ca38de23912deeb49b35
IDE Log: https://gist.github.com/anonymous/7cebd45268701dad5016e3a7c6966715

=====Build Information=====

Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01055

Xamarin (7c3dcf2)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Inspector Support (8398421)
Adds support for inspecting Xamarin and WPF apps.

Xamarin.Android (72366f7)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS (d93ae7e)
Visual Studio extension to enable development for Xamarin.iOS.

Hence, marking this issue as verified fixed.