Configuring a SSH Client on Windows 10

Richard Slater
2 min readOct 12, 2020

--

Photo by Tadas Sar on Unsplash

The first step is identifying the versions of the OpenSSH components we want to install, for this guide we will only be installing the SSH Agent, not the server. All of the following will need to be executed from a Elevated PowerShell Prompt.

This will spit out two capabilities, we want the client:

Which we can install with the following command:

This will result in the terse, but explanatory:

If you’re like me you might assume you can start the service and get on with your day (I did). However this isn’t Unix my dude, this is Windows and it has to be a bit harder, but hey that’s why we earn the big bucks:

Will fail with the unhelpful “Service ‘OpenSSH Authentication Agent (ssh-agent)’ cannot be started due to the following error” and the error “Cannot start service ssh-agent on computer ‘.’.” — thanks Windows.

You can do a bit of poking about with PowerShell:

Only to find out that the service is indeed stopped:

To find out why we need to dig a bit deeper:

Which tells us the service is disabled:

Now we can change that quite easily:

Now we can start the service:

And check it works with ssh-add:

Which now tells us the agent has no identities:

It’s not the smoothest of experiences, but at least I didn’t have to compile OpenSSH from source this time.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Richard Slater
Richard Slater

Written by Richard Slater

Christian, geek, consultant and leader with a passion for DevOps, Cloud, Web3, and Cybersecurity.

No responses yet