- Install wsl (wsl2) preferred from windows insider build
- setup ssh
- change default port
- permit your user
- turn off password login (only allow keys)
- create task in windows task scheduler to start up sshd on boot
- setup firewall rules for the port you chose
- use powershell script from microsoft/WSL#4150 (comment)
- set up task in windows task scheduler to run on boot
- port-forward your router on the port you chose
- in windows setup a static ip for your pc (you could also do this via router, however doing it on windows is more portable)
- if you have a domain set up the dns record to point to your pc
- 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)
- vs code install remote plugin, setup ssh config
- config should explictly name the port
- connect to your host and you should have vs code remote ready to go!
Last active
August 3, 2019 20:52
-
-
Save Pritesh-Patel/1a6d95d354a4429cc4b0c7d673a8a94a to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment