There are three main ways to generate a public key in Windows. We've tried them all with Windows 7, but given the PuTTY tools are most popular, they are documented first. Whichever method you choose, email your generated key to your designated manager and they will notify you when your account has been created. Note, if you have multiple keys because you have multiple machines, or perhaps you have different keys for different software, send them all to us - we can set you up with as many keys as you want bound to your Code Enigma account.

PuTTY

Generating a Public/Private Key Pair. You need to programmatically create a public/private key pair using the RSA algorithm with a minimum key strength of 2048 bits. The method you use to generate this key pair may differ depending on platform and programming language. Generating a public/private key pair by using OpenSSL library. Apr 12, 2018 Generating public/private rsa key pair. Enter file in which to save the key (/ yourhome /.ssh/idrsa): Press ENTER to save the key pair into the.ssh/ subdirectory in your home directory, or specify an alternate path. If you had previously generated an SSH key pair, you may see the following prompt. Generate online private and public key for ssh, putty, github, bitbucket Save both of keys on your computer (text file, dropbox, evernote etc)!!! The generated keys are RANDOM and CAN'T be restored. You can create keys without creating an account.

Generating Public Key From Private Key Finder

This is a Free Open Source Software (FOSS) solution for Windows that allows Windows users to generate SSH keys and use them to access Linux servers via an SSH connection.

[1] Download and run the PuTTY 'Installer' from this page:

[2] Generate a private and public key pair:

  • Go to the Windows Start menu -> All Programs -> PuTTY and open PuTTYgen
  • Click the 'Generate' button and PuTTYgen will ask you to make some random movement with your mouse until it has enough random data to generate a secure key for you
  • Click the 'Save private key' button and save the resulting file somewhere safe and only accessible by you!

[3] Export Public key to the Linux server:

In the grey box at the top, entitled 'Public key for pasting into OpenSSH authorized_keys file', there will be a string of nonsense. Copy all of this string into an email and send it to us, as per the opening instruction on this page.

That's it, you're done!

Git Bash

This is a light-weight terminal client for using Git from the command line on Windows. It's a sort of scaled down version of CygWin, and one of the nice things about it is it permits normal 'Terminal' access to Linux servers.

[1] Download and run the latest version from this page:

The installer will open msysGit when it completes, follow the instruction to create a shortcut:

[2] Generate a private and public key pair:

Follow steps 1 and 2 of the GitHub instructions found here:

Generating Public Key From Private Key Software

At step 3, use the 'clip' command as instructed, but paste the result into an email and send it.

Bitvise

If none of the above works, there's also Bitvise, which is not FOSS, but is freely available for personal use, and even individual use within an organisation, so it's a good and legal option.

[1] Download the Bitvise SSH client software:

[2] Generate a private and public key pair:

  • click the link titled 'User keypair manager' in the Login tab;
  • click the button [Generate New ...];
  • choose ssh-rsa and 1024bits;
  • you can enter passphrase or leave it empty
  • click the button [Generate]

Generating Public Key From Private Key Bitcoin

This passphrase is not sent to the remote host, and it is only used to protect your private key. Otherwise, anyone who has access to your private key can authenticate to your account automatically.

[3] Export Public key to the Linux server:

  • Go to the 'User keypair manager';
  • click the keypair in the slots;
  • click the button [Export];
  • chose 'Export public key' and 'OpenSSH format';
  • click the button [Export];

The result should look something like:

Email just this public part to Code Enigma, as per instructions.

A lost SSH public-key or a web service generates an SSH key but does not provide the public-key part to you. What to do now? There is a solution for this situation.

When you have an SSH key you need the public key to setup SSH passwordless login with SSH-key. But if you have lost the public key part but still have the private key, there is a way to regenerate the key.

With the public key missing, the following command will show you that there is no public key for this SSH key.

The -l option instructs to show the fingerprint in the public key while the -f option specifies the file of the key to list the fingerprint for.

To generate the missing public key again from the private key, the following command will generate the public key of the private key provided with the -f option.

The -y option will read a private SSH key file and prints an SSH public key to stdout. The public key part is redirected to the file with the same name as the private key but with the .pub file extension. If the key has a password set, the password will be required to generate the public key.

To check the details of the generated public key execute the following command as shown above.

The output of this command shows the key size as the first column, the fingerprint as the second column and after the file name, the type is shown in brackets. In the example above, a 4096 bit RSA key.

Read more of my posts on my blog at http://blog.tinned-software.net/.

Ssh get public key from private key

Related posts:

Coments are closed
Scroll to top