title: VSCode Remote SSH to Linux - Connecting was canceled
body: <p>I am trying to connect from my Windows 10 machine to my Ubuntu Linux server (16.04.6) using Remote SSH.
  To do this I've read many different tutorials but have no success. </p>
  
  <p>I am able to connect from my Windows 10 command prompt to the Ubuntu Linux server via ssh without any problems. I even used ssh-keygen to generate a private and a public key and copied the public key to the appropriate directory on the Linux Server (.ssh).</p>
  
  <p>In VsCode I installed the extension Remote-SSH added my host to my configuration file c:\user.ssh\config:</p>
  
  <pre><code>Host &lt;ip-address&gt;
    HostName &lt;ip-address&gt;
    User &lt;username&gt;
  </code></pre>
  
  <p>Then I clicked in VSCode the button bottom left "Open a remote Window" and chosed my host. A new windows opens and VSCode is trying to connect. Then I see a window with the error message: "Could not establish connection to . Connection was canceled". This is the log.</p>
  
  <pre><code>[11:53:17.573] Log Level: 2
  [11:53:17.582] remote-ssh@0.51.0
  [11:53:17.583] win32 x64
  [11:53:17.586] SSH Resolver called for "ssh-remote+&lt;ip-address&gt;", attempt 1
  [11:53:17.587] SSH Resolver called for host: &lt;ip-address&gt;
  [11:53:17.587] Setting up SSH remote "&lt;ip-address&gt;"
  [11:53:17.648] Using commit id "5763d909d5f12fe19f215cbfdd29a91c0fa9208a" and quality "stable" for server
  [11:53:17.650] Install and start server if needed
  [11:53:18.624] getPlatformForHost was canceled
  [11:53:18.625] Resolver error: Connecting was canceled
  [11:53:18.640] ------
  </code></pre>
  
  <p>Again, I can connect to the same linux server via ssh from my local machine (Win 10) without any problems. </p>