jambonz / jambonz-infrastructure

packer and cloudformation templates for creating EC2-based jambonz deployments
23 stars 29 forks source link

Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys #34

Open asarubbo opened 1 year ago

asarubbo commented 1 year ago

Hello Dave,

packer/jambonz-mini/scripts/install_nodejs.sh at a certain point does:

sudo chmod -R a+wx /root

This make the machine unreachable if login as root via ssh is the only way to reach the machine. /var/log/auth.log says:

Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys