Simple, just follow the tutorial bellow.
Better security and safer files transfer.
First we need to install putty-tools, on ubuntu you do this by using apt-get command:
sudo apt-get install putty-tools
After you’ve successfully installed putty-tools, we have to generate our private key, it’s better to suffix your private key with ppk as follows:
puttygen -t rsa -b 2048 -C "user@host" -o keyfile.ppk
Then we need to generate the .pem file which will be used to transfer files remotely, so you can skip this step if you don’t need it.
puttygen keyfile.ppk -O private-openssh -o keyfile.pem
After we’ve successfully done all the steps above we have to generate our .pub file and copy it to the remote server, otherwise the remote server won’t recognize us.
puttygen -L keyfile.ppk > keyfile.pub
Finally, when we need to connect to the remote server we have to add the .ppk file to the ssh command and the server will recognize us.
Subscribe to our newsletter and stay updated.