Closed psrpardhasaradhi closed 6 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"
Fixed in 3.28.2
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"