Search code examples
sshpermissionsopenssh

"Permissions are too open" while logging in to ssh


I have a problem while I am logging to my SSH server using OpenSSH (note: i am on windows and i need to use OpenSSH)

Permissions 0644 for 'privkey.ppk' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: privkey.ppk
Enter passphrase for key 'privkey.ppk':
Permission denied (publickey).

Solution

  • First of all, you need to convert the PPK file format to OpenSSH format, if you want to use it in SSH.

    Second thing is that the private key should not be readable by anyone else but you. So setting permissions to 600 is a good idea (chmod 600 privkey.ppk).