How To Generate Putty Keys wit Puttygen?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/generate-putty-keys-wit-puttygen/
PINTEREST
PINTEREST
INSTAGRAM

Puttygen is used to generate ssh public and private keys for putty. We can use different type of encryption algorithms bit sizes and ssh versions. In this tutorial we will look useful examples of puttygen.

Install

puttykeygen is provided with putty packages most of the Linux distributions like Ubuntu, Debian, Fedora, CentOS, RedHat.

Ubuntu, Debian

Fedora, CentOS, RedHat

Windows

Windows binaries are provided with the following url.

32 bit

https://the.earth.li/~sgtatham/putty/latest/w32/puttygen.exe

64 bit

https://the.earth.li/~sgtatham/putty/latest/w64/puttygen.exe

Syntax

Syntax of puttygen is like below.

  • KEYFILE is the file we read
  • OPTIONS are used to specify size, output keyfile etc.

Create Key with Default Options

We can generate keys with the following command. In this example we will generate RSA type key file named test.ppk . ppk is the extension of the putty keys.

Set Key Size

We have the option to set the size of the putty key. More in size means more secure but less performance. But the performance loss is negligible. We can set the size with -b option. We will provide size as bit unit. In this example we will set the key file size 4096 bit .

Change Passphrase

Keys are protected with symmetric encryption. This means ppk keys are encrypted and we need to use passphrase. We can also change the current passphrase with -P option. In order to change existing passphrase we should provide old passphrase too.

LEARN MORE  Access.conf Security Configuration For Linux and Unix

Set Comment To Key

In enterprise environment we may have multiple keys where we can not remember actually what it was. Or we may need to put some comment about keys on the key file. We can use –C and the comment we want to set.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/generate-putty-keys-wit-puttygen/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)