public:win11_wsl2_ssh_en
文書の過去の版を表示しています。
WSL SSH In Windows 11
How to install Linux on Windows with WSL (Microsoft)
Connection settings for this article
Host Name | Login Name | |
---|---|---|
Server | Jump_Server | Jump_Server_Username |
Client | Localhost | Local_Username |
Command install
Check OS version
Start PowerShell or Command Prompt by selecting “Run as administrator”. PowerShell or Command Prompt can also be opened in Windows Terminal. The command to check the OS version is as follows:
PS C:\Windows\System32> winver
Select and install a Linux distribution
Linux distributions that install WSL2 online can be found with “wsl -l -o”.
PS C:\Windows\System32> wsl -l -o インストールできる有効なディストリビューションの一覧を次に示します。 'wsl.exe --install <Distro>' を使用してインストールします。 NAME FRIENDLY NAME Ubuntu Ubuntu Debian Debian GNU/Linux kali-linux Kali Linux Rolling Ubuntu-18.04 Ubuntu 18.04 LTS Ubuntu-20.04 Ubuntu 20.04 LTS Ubuntu-22.04 Ubuntu 22.04 LTS OracleLinux_7_9 Oracle Linux 7.9 OracleLinux_8_7 Oracle Linux 8.7 OracleLinux_9_1 Oracle Linux 9.1 openSUSE-Leap-15.5 openSUSE Leap 15.5 SUSE-Linux-Enterprise-Server-15-SP4 SUSE Linux Enterprise Server 15 SP4 SUSE-Linux-Enterprise-15-SP5 SUSE Linux Enterprise 15 SP5 openSUSE-Tumbleweed openSUSE Tumbleweed
It can also be installed from the Microsoft Store rather than by command.
Here we install Ubuntu-22.04(wsl_install.jpg).
wsl --install -d Ubuntu-22.04
Reboot the system as instructed.
public/win11_wsl2_ssh_en.1710486224.txt.gz · 最終更新: 2024/03/15 16:03 by hirata.nanako