Generating an SSH key on Windows

I needed an SSH key. First I needed to the WSL subsystem, and once I had that working, I could do the work I needed to do: get an SSH key.

There is a utility to help with this on Linux, called ssh-keygen. You run this at the command line and get two files output. These are the public and private keys. I knew how to do most of this, but what I wanted to do was get a custom filename. There are two ways to do this.

First, you can just enter ssh-keygen at the command line. The system will then prompt you for the filename, with id_rsa as the default.

2019-03-27 12_27_17-sjones@Plato_ _mnt_c_Users_Steve_.ssh

The other way is with the –f parameter. In this case, I use this because I want to specify this as an RSA key as well as set the bit size.

2019-03-27 12_26_16-sjones@Plato_ _mnt_c_Users_Steve_.ssh

In both cases, I now have new ssh keys I can use to connect to servers, once I add them to the server itself.

2019-03-27 12_28_19-.ssh

About way0utwest

Editor, SQLServerCentral
This entry was posted in Blog and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.