-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Steps on how to enable this from a completely brand new WSL installation.
- Run WSL.
- Enter credentials.
- Press Enter just a few times until you see your username.
- $ sudo apt install -y build-essentials
- $ sudo apt install -y gdbserver
- $ sudo apt install -y openssh-server
- $ sudo nano /etc/ssh/sshd_config
- Note the number next to "Port"
- Set the option next to "PasswordAuthentication" to "yes"
- CTRL+O to save.
- CTRL+X to quit.
- $ sudo service ssh force-reload
- $ sudo ssh-keygen -A
- $ sudo service ssh start
- We need to test the connection.
- $ ssh [your username]@localhost -p [enter the "Port" number]
- If it requests for your password, the connection is successful. If connection is refused, some other application is blocking the port.
- Change port number in sshd_config if connection is refused. Repeat from Step 12.
- We exit the ssh session.
- $ exit
- Do all the steps in this article, from the top of this article
https://blogs.msdn.microsoft.com/vcblog/2017/02/08/targeting-windows-subsystem-for-linux-from-visual-studio/ - Explore the downloaded Linux C and C++ header files.
- Copy the path to the includes directory.
- Add them to the project configuration pages > VC++ Directories > Includes
- Let IntelliSense finish.
Sources:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request