Tuesday, May 20, 2025

How to Enable OpenSSH Server and Client on Windows 11

OpenSSH is a powerful tool for secure remote connections. You can enable OpenSSH Server and Client on Windows 11 using **Settings** or **PowerShell**.

Using Settings

  1. Open Settings (Win + I).
  2. Go to Apps > Optional Features.
  3. Click Add a feature and search for OpenSSH Client and OpenSSH Server.
  4. Select both and click Install.
  5. Once installed, restart your computer.

Using PowerShell

  1. Open **PowerShell** as Administrator.
  2. Run the following commands:
  3. Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
  4. Start the SSH service:
  5. Start-Service sshd Set-Service -Name sshd -StartupType 'Automatic'
  6. Verify SSH is running:
  7. Get-Service sshd

Once enabled, you can use ssh commands in PowerShell or CMD to connect to remote machines. Let me know if you need help configuring SSH keys or firewall rules! 🚀

For more details, check Microsoft’s guide or this tutorial.

No comments:

Post a Comment