DEV Community 👩‍💻👨‍💻

Cover image for Convert .ppk key for ssh connection on linux
Florian Baba
Florian Baba

Posted on • Updated on

Convert .ppk key for ssh connection on linux

If you want to use a ssh key as a .ppk file (putty format) on linux, first you need to convert it.

To do it, install putty-tools:

sudo apt-get install putty-tools 
Enter fullscreen mode Exit fullscreen mode

Now you can convert your key from .ppk format to .key format:

puttygen <your_key_name>.ppk -O private-openssh -o <your_key_name>.key 
Enter fullscreen mode Exit fullscreen mode

And voilà! 😀
You can use it to open your ssh connection:

ssh -i <your_key_name>.key <user>@<server-ip>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Timeless DEV post...

How to write a kickass README

Arguably the single most important piece of documentation for any open source project is the README. A good README not only informs people what the project does and who it is for but also how they use and contribute to it.

If you write a README without sufficient explanation of what your project does or how people can use it then it pretty much defeats the purpose of being open source as other developers are less likely to engage with or contribute towards it.