Skip to content

Instantly share code, notes, and snippets.

@0i0
Created August 13, 2019 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0i0/62730ea4f7f207f31d82652e2a51a3c3 to your computer and use it in GitHub Desktop.
Save 0i0/62730ea4f7f207f31d82652e2a51a3c3 to your computer and use it in GitHub Desktop.
shh:// schema handler for windows using linux subsystem (ubuntu)
reg add HKCR\ssh /ve /t REG_SZ /d "URL:ssh"
reg add HKCR\ssh /v "URL Protocol" /t REG_SZ /d ""
reg add HKCR\ssh\shell\open\command /ve /t REG_EXPAND_SZ /d "%LOCALAPPDATA%\Microsoft\WindowsApps\ubuntu.exe run ssh $(echo %%1| awk -F/ '{print $3}')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment