This question already has an answer here:

I have a SSH public and private key pair (files) from a previous Linux installation along with the corresponding pass phrase:


When I try to add the private key I get a warning message:

$ ssh-add id_rsa.ppk
Permissions 0444 for 'id_rsa.ppk' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.

What is the correct way to do this? I am using Linux Mint 18.1.

Update I found a solution on this page: https://superuser.com/questions/232362/how-to-convert-ppk-key-to-openssh-key-under-linux

marked as duplicate by Jakuje, Satō Katsura, G-Man, Archemar, GAD3R Apr 7 '17 at 10:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Fix the permissions (by removing group and world permissions altogether):

chmod go= ~/id_rsa.ppk

then add it:

ssh-add ~/id_rsa.ppk

The standard permissions for SSH files in your ~/.ssh directory are:

~/.ssh: 700

id_rsa : 600

id_rsa.pub: 644

authorized_keys: 644

Not the answer you're looking for? Browse other questions tagged or ask your own question.