Last active
August 23, 2020 01:42
-
-
Save vitran96/209763b7505aecfa3f447c3bf1ccd8ae to your computer and use it in GitHub Desktop.
Windows 10 OpenSSH with PowerShell (Admin)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set-Service -Name sshd -StartupType 'Automatic' | |
| Get-NetFirewallRule -Name *ssh* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-Service sshd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Start-Service sshd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment