3 ms·
service sshd start
by supernovae 5y ago
service sshd start
- ninkendo 5y agoWSL(2) has no bridge networking, so you need to do port forwarding in windows (and enable the port through windows firewall) to make this work. It’s not super hard, but not as trivial as it could be if there were tighter integration.
- supernovae 5y agoI just followed Scott’s guide and there are easy scripts on github.
- ninkendo 5y agoI mean sure, so did I. I'm just saying it's not as trivial as it could be. The script triggers a UAC prompt which means you can't just have it run automatically when the computer boots, it needs human intervention (if you have a better way, I'd love to hear it.)
- lostmsu 5y agoWon't simply doing ssh win-PC wsl give you the same result as SSHing directly into WSL distro?
- ninkendo 5y agoSSH'ing into the windows machine itself is a pretty useless feature for me. Windows' shell (cmd.exe) is awful, and as good as PowerShell may be, I never really learned it. I want a real unix/linux style environment. So, having an SSH server in Windows, that only exists so I can run the `wsl` command, doesn't seem very useful. I'd rather the SSH server be hosted directly in the WSL VM itself and skip the intermediary step.