Skip to content

Permissions on the deploy key used by the continuous deployment script are too open

OpenSSH refuses to use private keys that are too readable. Thus:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/tmp/tmp.OsFRZtYl3j/deploy_key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.

And the authentication/deployment fails.