Created
May 1, 2023 02:10
-
-
Save kaidokert/3481d3c6c43faeaf7d104519a96c36aa to your computer and use it in GitHub Desktop.
Install openssh on Windows
This file contains 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
# OpenSSH | |
$capability = Get-WindowsCapability -Online -Name "OpenSSH.Client~~~~0.0.1.0" | |
if($capability.State -ne "Installed") { | |
WriteInfoHighlighted "`t Enabling OpensSH Client" | |
Add-WindowsCapability -Online -Name "OpenSSH.Client~~~~0.0.1.0" | |
Set-Service ssh-agent -StartupType Automatic | |
Start-Service ssh-agent | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment