Last active
January 17, 2023 16:59
-
-
Save ciis0/80d87ca311f9d6024f49ab912e534cf5 to your computer and use it in GitHub Desktop.
start wsl ssh and connect using Windows OpenSSH running in pterm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wsl sudo service ssh start | |
reg add HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions\wsl /v HostName /t REG_SZ /d $(wsl hostname -I) /f | |
start pterm "-e", ssh, "-A", "-p", 2222, "-l", "cschulz", "-R", ":9000:127.0.0.1:9000", $(wsl hostname -I).trim() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment