To SSH into Windows 11, you first need to install the OpenSSH Server feature in Settings > Apps > Optional Features and ensure it’s running in the Services app. Then, use an SSH client on another device to connect using the command ssh <username>@<windows_ip_address>

1. Install the OpenSSH Server on Windows 11 

  1. Open Settings > Apps > Optional features.
  2. Click View features (or Add an optional feature).
  3. Search for and select OpenSSH Server.
  4. Click Next and then Install to begin the installation.

2. Configure the OpenSSH Server Service 

  1. Open the Services desktop app by typing services.msc in the Windows search bar and pressing Enter.
  2. Find OpenSSH SSH Server in the list.
  3. Double-click it, set the Startup type to Automatic, and click Start to begin the service.

3. Connect with an SSH Client 

  1. On your client device, open a terminal or command prompt. 
  2. Use the command ssh <username>@<windows_ip_address> to connect.
    • Replace <username> with the user’s Windows username. 
    • Replace <windows_ip_address> with the local IP address of the Windows 11 machine, which you can find by running ipconfig in the command prompt. 
  3. If this is your first time connecting to this host, you’ll be asked to confirm the host key fingerprint; type Yes. 
  4. Enter the user’s Windows password to log in. 

Leave a Reply