Skip to content

Instantly share code, notes, and snippets.

@LRKasri
LRKasri / VSCode2remoteWSL.md
Created April 8, 2024 14:04
VSCode using SSH to connect to remote WSL2

VSCode using SSH to connect to remote WSL2

  • Before starting:
    • I have tried the New-ItemProperty method myself but it keep asking me to type my password and show that my password is wrong, so I tried some other methods and this is working best for me.
    • This markdown will contain each step from how to set up SSH to service to finally use VSCode to remotely connected to my remote PC. There is a minor bug that when using nvidia-smi in terminal, it is not correctly shown. However, you can still use you GPU without any problem in your program.
    • This walkthrough is novice-friendly, since I am a novice myself, and please leave a comment if anything is confusing or no need to do.
    • Thank you for reading, hope you enjoy the journey and have fun using WSL2 remotely!

Prerequisite/Testing connection