Skip to content

Instantly share code, notes, and snippets.

@aanari
Created July 23, 2022 16:11
Show Gist options
  • Save aanari/1d265111601973d27b943897ab806a04 to your computer and use it in GitHub Desktop.
Save aanari/1d265111601973d27b943897ab806a04 to your computer and use it in GitHub Desktop.
SSH and WSLHostPatcher
rem This starts up everything for WSL2
C:\windows\system32\wsl.exe -e exit
rem and then it starts up WSLHostPatcher
C:\"Program Files"\WSLHostPatcher\WSLHostPatcher.exe
rem Finally, it starts the SSH server
C:\windows\system32\wsl.exe -e sudo service ssh start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment