Skip to content

Instantly share code, notes, and snippets.

@Pritesh-Patel
Last active August 3, 2019 20:52
Show Gist options
  • Save Pritesh-Patel/1a6d95d354a4429cc4b0c7d673a8a94a to your computer and use it in GitHub Desktop.
Save Pritesh-Patel/1a6d95d354a4429cc4b0c7d673a8a94a to your computer and use it in GitHub Desktop.

Setup for remote development on wsl rough steps (WIP)

  1. Install wsl (wsl2) preferred from windows insider build
  2. setup ssh
    • change default port
    • permit your user
    • turn off password login (only allow keys)
  3. create task in windows task scheduler to start up sshd on boot
  4. setup firewall rules for the port you chose
  5. port-forward your router on the port you chose
  6. in windows setup a static ip for your pc (you could also do this via router, however doing it on windows is more portable)
  7. if you have a domain set up the dns record to point to your pc
  8. on your remote machine use ssh-copy-id to your ip/domain it will ask you for your linux pass - once (if you want to add more keys add them to the .ssh/authorized_keys file)
  9. vs code install remote plugin, setup ssh config
    • config should explictly name the port
  10. connect to your host and you should have vs code remote ready to go!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment