title: Visual Studio 2017 cannot connect to WSL says Username and Password are wrong
body: <p>I followed this tutorial <a href="https://blogs.msdn.microsoft.com/vcblog/2017/02/08/targeting-windows-subsystem-for-linux-from-visual-studio/" rel="nofollow noreferrer">from Microsoft</a>. I created my WSL username and password, installed all the necessary applications, and started the SSH service. The problem lies when I go to connect to it from Visual Studio in the <code>Tools &gt; Options &gt; Cross Platform &gt; Connection Manager</code> menu.</p>
  
  <p>I follow the instructions:</p>
  
  <ul>
  <li>Host Name = localhost</li>
  <li>Port = 22</li>
  <li>User name = User name I created for WSL</li>
  <li>Authentication Type = Password</li>
  <li>Password = Password I created for WSL user name.</li>
  </ul>
  
  <p>When I do this, it says my user name or password is incorrect. But I know they are correct. I can't post images to show it because my reputation is not at 10 yet but it highlights the username and password bar in red and says <code>Authentication failure. Please make sure credentials are correct.</code> </p>
  
  <p>I know I can connect to devices because I tried connecting to my Raspberry Pi. Whenever I try and debug anything on that it gives me a segmentation fault. But that's another question for another day.</p>
  
  <p>Any ideas as to why I can't connect to my WSL?</p>