4 ms·
So much extra work as compared with what? In my experience WSL is a godsend for those who have to work on windows and like to integrate Linux tools in daily wor
by kuboble 5y ago
So much extra work as compared with what?
In my experience WSL is a godsend for those who have to work on windows and like to integrate Linux tools in daily work.
Before there were things like cygwin, some ported tools, or Linux in vm. All limited and/or major pain to work with.
- pletnes 5y agoNo systemd/cron/…, one extra OS to patch/upgrade, slooow perf on NTFS, can’t ssh into it (trivially), the list goes on. It has its uses but linux has many other uses that it doesn’t reliably cover.
- supernovae 5y agoservice 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.
- k8sToGo 5y agoWhy would you want to SSH into WSL? Sounds to me you are not using WSL for what it is meant to be used.
- ninkendo 5y agoProbably the same reason you’d want to SSH into any machine? You want to access a CLI, remotely, from another machine.
- k8sToGo 5y agoThat is not what WSL is about though. In that case you would probably want a proper VM or use the Windows OpenSSH Server and get into the WSL CLI that way.
- pletnes 5y agoYou’re right. I want Linux, full stop.
- ninkendo 5y agoWhy is it not what WSL is about, in particular? It works fine for me, am I doing things wrong? I don't want a "proper VM", I want something that has access to my windows filesystem, that I can SSH to. I also want to be able to run linux software from said CLI.