DEV Community

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

Posted on • Edited on

3 1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay