Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
ssh in PowerShell; it should display usage infossh username@hostname (replace with actual username and hostname)ssh-keygen -t rsa (follow prompts, save to default location)ssh-copy-id username@hostname or manually add to ~/.ssh/authorized_keys on the serverNote: Ensure the remote server has SSH enabled and port 22 open. For detailed setup, check Microsoft’s official OpenSSH guide