Istruzioni per installare WSL
Windows users can set up Windows Subsystem for Linux (WSL) on their machine to log into a remote server using SSH.
Step 1: Enable WSL
-
Open PowerShell as Administrator:
-
Press
Windows Key + X
, then select Windows PowerShell (Admin).
-
-
In the PowerShell window, type the following command to enable WSL:
wsl --install
This command installs the necessary WSL components and the latest version of Ubuntu by default. You may be prompted to restart—if so, restart your system.
Step 2: Set Up the Linux Environment
-
Once installed, launch the Linux distribution from the Start menu.
-
You will be prompted to create a new user and password for your WSL instance. Follow the prompts to configure it.
-
Update your Linux environment by running the following commands
sudo apt update && sudo apt upgrade -y
Step 3: Install OpenSSH (if not installed)
Most Linux distributions come with OpenSSH pre-installed. To verify or install:
-
Open your WSL terminal.
-
Install the OpenSSH client by running:
sudo apt install openssh-client