Logged Windows using Microsoft Account (Not SSH)
Setup OpenSSH Server on Windows 11
To set up OpenSSH Server on Windows 11, follow these steps:
- Open PowerShell as Administrator.
- Run the following command to install OpenSSH:
- Restart your computer.
- After restarting, open PowerShell again as Administrator.
- Run the following command to enable the OpenSSH service:
- Run the following command to start the OpenSSH service:
wsl --install
wsl --set-default-version 2
wsl --start
Check User Account
After setting up OpenSSH, run the following command to check the currently logged-in user:
whoamiThe output should be:
adam-a\adam-appleNotes
This guide assumes that you have already logged in to your Windows 11 system using a Microsoft Account. This is not related to SSH (Secure Shell).