Reputation: 590
I've tried to get Visual Studio 2019 (Community Edition) working with a Mac to create a Mobile app iOS and Android. Unfortunatly I'm struggling the whole day wit this combination.
My current issue, which I cannot solve myself is the following error in Visual Studio on Windows:
An unexpected error occurred while checking the SSH configuration of '192.168.178.74'
An item with the same key has already been added.
I tried to change the MAc Address of the virtual machin to get a new IP Adress, without success
my setup:
Btw. I forgot to mention, that it is possible to log in to the Mac via ssh from Windows.
Upvotes: 10
Views: 5565
Reputation: 471
I had not Monotouch folder, so I created it manually and run VS using Administrator privileges. This solved my problem.
Upvotes: 3
Reputation: 747
I found this error happened on VS 16.5.2 and after updating to 16.5.3 today it fixed the issue.
Upvotes: 0
Reputation: 590
It looks like this is an issue with Visual Studio on Windows. Microsoft seems to be aware of this and working on a solution.
Update: Microsoft just recently released version 16.5.2 of Visual Studio. That released (non-preview) version fixed the issue for me ;-)
Upvotes: 1
Reputation: 514
I was able to get this working. It seems that running chmod og-w "$HOME"
on the MacOS device fixed it for me.
However, I'm not 100% sure that was the only step because I've been debugging this for hours, so everything I did might be unnecessary, but if the above doesn't work alone, here is everything I did:
%LOCALAPPDATA%\Xamarin\MonoTouch
directory (leave the directory itself)~/.ssh/authorized_keys
file~/Library/Caches/Xamarin/XMA
directorychmod og-w "$HOME"
Upvotes: 3
Reputation: 199
My fix to this issue was to delete the hosts.key file in this directory
%LOCALAPPDATA%\Xamarin\MonoTouch
Upvotes: 19