WSL
Windows Subsystem for Linux (WSL) enables running Linux environments natively on Windows 10/11.
SSH Configuration
- Non-admin accounts: Place public keys in
~/.ssh/authorized_keyswithin WSL. - Admin accounts: Always use
C:\ProgramData\ssh\[[concepts/administrators-authorized-keys|administrators_authorized_keys]](Windows OpenSSH ignores~/.ssh/authorized_keysfor admin accounts). - Install SSH server:
sudo apt update && sudo apt install openssh-server - Start service:
sudo service ssh start - Enable on boot:
sudo systemctl enable ssh - Configure Windows Firewall to allow port 22.
Access
- From Windows:
ssh username@localhost - From external machines:
ssh username@<windows-ip>
2026 04 14 Install SSH and configure to access WSL