Appdynamics / HA-toolkit

AppDynamics Controller High Availability Toolkit
https://docs.appdynamics.com/display/PRO42/Using+the+High+Availability+(HA)+Toolkit
Apache License 2.0
13 stars 11 forks source link

DOC (README.txt): permissions on .ssh and authorized_keys need to be set to 700 #71

Closed psrpardhasaradhi closed 6 years ago

psrpardhasaradhi commented 7 years ago

In pre-requisites section, explaining how to generate ssh keys, we need to add that the permissions need to be set to 700 on .ssh and 600 on authorized_keys. If the permissions are wide open we get the error "Permission denied (publickey)".

https://help.ubuntu.com/community/SSH/OpenSSH/Keys

I tested for appropriate permissions and these appear to be the least possible.

chmod 700 .ssh chmod 644 .ssh/id_rsa.pub chmod 600 .ssh/id_rsa chmod 600 .ssh/authorized_keys

We can also add a test to check if the ssh access is set up correctly.

ssh -oNumberOfPasswordPrompts=0 node1 "echo success" ssh -oNumberOfPasswordPrompts=0 node2 "echo success"

psrpardhasaradhi commented 6 years ago

Fixed in 3.28.2