If you are getting the following
error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE!
@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0775 for '/usr/local/etc/ssh_key' 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: /usr/local/etc/ssh_key
Could not load host key: /usr/local/etc/ssh_key
This is normally due the ssh key having the wrong permissions. Try changing the
keys permissions to 0600 using the command: chmod 0600 these files are generated at installation or at the point of creation using the
ssh-keygen command. These contain the keys exchanged with ssh clients to
authenticate.
At installation the key generate is run in case the files don't
exist. If the files do exist the permissions check is done. The permissions
should be 0600 with an owner of root. If the permissions are greater than 0600
(eg 0775 ) then this could be a sign that the files have been tampered
with.
Note: that if you force a regeneration of the files the keys for the server will change and all clients that have previously connected will get a warning upon their next connect. Keys that have change can be a sign of a security issue clients connecting should treat such warning messages seriously.