Enable OpenSSH Server Using PowerShell in Windows 2022 Server

Enable OpenSSH Server Using PowerShell in Windows 2022 Server

Run Powershell as Administrator

Execute the commands mentioned in the below steps

Step 1


Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
    

Step 2


Start-Service sshd
    

Step 3


Set-Service -Name sshd -StartupType 'Automatic'
    

Step 4


New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
    

Step 5


Get-Service -Name sshd
    

Enabling OpenSSH Server Using PowerShell in Windows 2022 Server is complete !!!

Comments

Popular posts from this blog

MongoDB Installation Ubuntu 22.04 LTS