-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio WSL connection Failure #2505
Comments
Exit all WSL instances and do a [edit: args] To turn Device Discovery off, go to Settings -> Update & Security -> For Developers, and go back to "Windows Store Apps" mode. Check Lord knows what devs who want "Device Discovery" and real Regardless of the problem, it likely isn't a "WSL thing" or a "MSVS for Linux thing". If you can't |
Hi Thanks you very much. Discovery seems to be affecting the results of this test. However further research shows some are having success with insider builds of windows 16xxx and above. I am quite desperate to be able to use GCC compiler from MSVC with WSL to make that possible. Quite scary that some are only able to get this to work by reinstalling windows from scratch. When my insider build download complete I try again. Thanks for the detailed information above. |
In
[Not all those may be necessary on recent releases, but that's the secret handshake around here.] Forget MSVC for now. Start
In another terminal try connecting:
Once you get that working, move on to trying to connect with PuTTY, and then worry about MSVC. Bonne chance. |
Thanks give that a try return with feedback |
That fixed it. Windows insider update 16288 completed and WSL still failed on Authentication Since am unix/Linux/bash novice your simple 2 window test above allowed me to play with options in my WSL config and see results quickly This led me to the config line AllowUsers 'MyUserName' Can now connect from VS, thanks for the help. great stuff. |
This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what's up. Please fill out ALL THE FIELDS!
WSL connection to visual studio never happy with my login details , if followed this guides below
https://blogs.msdn.microsoft.com/vcblog/2017/02/08/targeting-windows-subsystem-for-linux-from-visual-studio/
https://stackoverflow.com/questions/45465756/visual-studio-2017-cannot-connect-to-wsl-says-username-and-password-are-wrong
https://www.hanselman.com/blog/WritingAndDebuggingLinuxCApplicationsFromVisualStudioUsingTheWindowsSubsystemForLinux.aspx
I follow the instructions:
Host Name = localhost
Port = 22
User name = User name I created for WSL
Authentication Type = Password
Password = Password I created for WSL user name.
with credentials above it doesnt like username password.
i change port number in WSL config file to 2222, then it does not like port number.
I return to port 22, disbale ssh broker on windows , and still no luck
Need help getting WSL to connect to my Vs2017 using latest update .
If you have a feature request, please post to the UserVoice.
Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to [email protected], referencing the GitHub bug number. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".
Your Windows build number: (Type
ver
at a Windows Command Prompt)Build 14393
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
i followed this guide
https://blogs.msdn.microsoft.com/vcblog/2017/02/08/targeting-windows-subsystem-for-linux-from-visual-studio/
What's wrong / what should be happening instead:
Visual studio 2017 will not connect to WSL, complains password and username i setup is wrong
but i gave same credentials i used to setup wsl
<cmd>
is failing, then runstrace -o strace.txt -ff <cmd>
, and post the strace.txt output here)See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: