Generate SSH key on Linux and Convert SSH key to PPK

Опубликовано: 05 Июнь 2017
на канале: dotsway
30,934
225

In this tutorial i will show you how to generate ssh key on Linux using the ssh-keygen and rsa, convert the ssh key to ppk using puttygen after creating new user on Linux.

Generate SSH Key on Linux and Convert it with Puttygen for Windows

In this tutorial i will show you how to generate an ssh key on linux, i will be using the ssh keygen and convert the key using puttygen.

Steps:

Login to your Linux Machine

Create new user

Replace newUser with any user name you desire.

useradd newUser
Then switch to the desired user

su newUser
Generate new SSH Key

ssh-keygen -t rsa


Authorized Keys

Now we need to add the public key to the authorized keys list

cat /home/newUser/.ssh/id_rsa.pub to /home/newUser/.ssh/authorized_keys
Modify file permissions for security purposes

chmod 644 /home/newUser/.ssh/authorized_keys


Transfer private key to your local machine

You can simply copy the file content of /home/newUser/.ssh/id_rsa to a file and name it newUser.pem

Note: If you are using notepad be sure to save the file using 'ansi' encoding.

Notepad Unicode Ansi



Convert pem to ppk

This is an essential step to use the key from windows system.

Download puttygen.exe

Load private key
Choose the file you created
save with .ppk extension

Written Tutorial:
http://dotsway.com/2017/06/01/generat...

Convert SSH Pem Key to PPK
https://goo.gl/327A4g


На этой странице сайта вы можете посмотреть видео онлайн Generate SSH key on Linux and Convert SSH key to PPK длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь dotsway 05 Июнь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 30,934 раз и оно понравилось 225 зрителям. Приятного просмотра!