How to Login Using PPK File With SSH
In some situations, you are given only a ppk file for access to a cloud server. You know, however, it's for Putty on windows, not for OpenSSH client which might be the most familiar to you.🤔
I am gonna introduce a method to convert a ppk file into a pem file so that you can login to the linux server with ssh command which you might be used to.
First off, install putty-tools on your machine.
1sudo apt-get install putty-tools
Then convert your *.ppk file into a *.pem file like so:
1puttygen ppkfilename.ppk -O private-openssh -o pemfilename.pem
Pretty simple, isn’t it? 🙂
Secure the pem file, it's important, as you may know.
1chmod 400 pemfilename.pem
Now you can login to the server with ssh command!
1ssh -i pemfilename.pem user@server-ip
Thanks for reading!