Skip to content

Instantly share code, notes, and snippets.

@kaidokert
Created May 1, 2023 02:10
Show Gist options
  • Save kaidokert/3481d3c6c43faeaf7d104519a96c36aa to your computer and use it in GitHub Desktop.
Save kaidokert/3481d3c6c43faeaf7d104519a96c36aa to your computer and use it in GitHub Desktop.
Install openssh on Windows
# 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