Skip to content

Instantly share code, notes, and snippets.

@RichardSlater
Last active October 12, 2020 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardSlater/190eb8eeeff64282d3a9f8bb93aba264 to your computer and use it in GitHub Desktop.
Save RichardSlater/190eb8eeeff64282d3a9f8bb93aba264 to your computer and use it in GitHub Desktop.
Install SSH Client on Windows 10
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
Name : OpenSSH.Client~~~~0.0.1.0
State : NotPresent
Name : OpenSSH.Server~~~~0.0.1.0
State : NotPresent
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Path :
Online : True
RestartNeeded : False
Start-Service ssh-agent
Start-Service : Service 'OpenSSH Authentication Agent (ssh-agent)' cannot be started due to the following error:
Cannot start service ssh-agent on computer '.'.
At line:1 char:1
+ Start-Service ssh-agent
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
Get-Service ssh-agent
Status Name DisplayName
Stopped ssh-agent OpenSSH Authentication Agent
Get-Service ssh-agent | Select StartType
StartType
---------
Disabled
Get-Service -Name ssh-agent | Set-Service -StartupType Manual
Start-Service ssh-agent
The agent has no identities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment