Skip to content

Instantly share code, notes, and snippets.

@tsmoreland
Last active April 11, 2021 13:44
Show Gist options
  • Save tsmoreland/7de7bd89f549c8b418ac9c039558bab8 to your computer and use it in GitHub Desktop.
Save tsmoreland/7de7bd89f549c8b418ac9c039558bab8 to your computer and use it in GitHub Desktop.
OpenSSH portable setup on Windows

Reference

Moving from Windows 1809's OpenSSH to OpenSSH Portable

Uninstall Windows OpenSSH

Remove-WindowsCapability -Online -Name "OpenSSH.Client~~~~0.0.1.0"
Remove-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0"

Uninstall service

Get-Service ssh-agent | Stop-Service
sc.exe delete ssh-agent

Install OpenSSH Portable

requires Chocolatey Package Manager

choco install openssh --package-parameters="/SSHAgentFeature"

Configure Git

git config --global core.sshCommand "'C:\Program Files\OpenSSH-Win64\ssh.exe'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment