Fix WARNING: UNPROTECTED PRIVATE KEY FILE!

I am trying to make an SSH connection to a server via SSH key. But it hasn’t worked…

I see what I need Assign the proper permissions for an ssh key

I have received this error message:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ Permissions 0755 for ‘/Users/alba/.ssh/defserver’ are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key “/Users/alba/.ssh/defserver”: bad permissions us1@211.78.231.42: Permission denied (publickey).

Clearly the problem is with the ssh key used, which has very lax permissions. The question is:

What is the proper permission to use for ssh key files?

See also  Can I upload files to GitHub without using Git?
Loading Facebook Comments ...
Loading Disqus Comments ...