I have a SSH public and private key pair (files) from a previous Linux installation along with the corresponding pass phrase:
~/id_rsa.pub
~/id_rsa.ppk
When I try to add the private key I get a warning message:
$ ssh-add id_rsa.ppk
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
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
.ppkfile is probably a PuTTY private key file - the format is different from that used by OpenSSH. You can use PuTTY'sputtygento convert to an OpenSSH compatible format. – steeldriver Apr 06 '17 at 13:35.sshhave? and Error: permission denied through ssh. – G-Man Says 'Reinstate Monica' Apr 07 '17 at 03:23