title: Broker Problem with connect to Mac from Visual Studio 2019 Xamarin.iOS
body: <p>After updated mac OS to <em>Catalina</em> 10.15.4 and XCode 11.4 and VS 2019 16.5.1<br>
  <strong><em>I can't pairing to mac from VS</em></strong>, there is getting the error in VS: <br>
  "<strong>An error occurred while trying to start Broker ...</strong>".   </p>
  
  <p>Info at log file:<br> 
  <em>"Broker could not be installed.<br>
  A connection is established to "192.168.233.1" ...<br>
  Server changes from ConnectingState to DisconnectingState to 192.168.233.1 (192.168.233.1).<br>
  Disconnecting from 192.168.233.1 ...<br>
  Server changes from DisconnectingState to DisconnectedState to 192.168.233.1 (192.168.233.1).<br>
  Connection to "192.168.233.1" is established.<br>
  An error occurred while trying to start Broker ...<br>
  Client vs - No packet has been sent in 30 seconds. <br>
  Sending Ping to Server to maintain Keep Alive"</em><br></p>
  
  <p>I think the problem with connecting to macOS, because <br><strong>Apple replaced bash with zsh as the default shell in macOS Catalina</strong>. </p>
  
  <p>I tried to do next steps to resolve it:<br>
  1) Remove XMA folder on Mac and Windows: <br>
  On MacOs: <code>open "$HOME/Library/Caches/Xamarin"</code><br>
  On Win: <code>%localappdata%\Temp\Xamarin\XMA</code> </p>
  
  <p>2) I accepted XCode agreement on MacOS:</p>
  
  <pre><code>sudo xcodebuild -license accept
  </code></pre>
  
  <p>3) Then I tried connect to MacOS and I got the error:<br>
  "<em>An unexpected error occurred while checking the SSH configuration "192.168.233.1". An item with the same key has already been added.</em>"<br></p>
  
  <p>I fix it by deleted the <strong>hosts.key</strong> file in this directory:</p>
  
  <pre><code> %LOCALAPPDATA%\Xamarin\MonoTouch
  </code></pre>
  
  <p>And again I got the same error: "An error occurred while trying to start Broker ..."</p>
  
  <p>4) I checked ping with Mac 
  <code>ping 192.168.233.1</code> - works , </p>
  
  <pre><code>ssh username@192.168.233.1 
  </code></pre>
  
  <p>This command gave the message:<br>
  "The default interactive shell is now zsh.
  To update your account to use zsh, please run <code>chsh -s /bin/zsh</code>.
  For more details, please visit <a href="https://support.apple.com/kb/HT208050" rel="noreferrer">https://support.apple.com/kb/HT208050</a>."<br></p>
  
  <p>Please give any advice how to fix problem with Broker to pair Visual Studio to MacOS with Catalina.</p>