1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
Check the permissions on your home directory, the .ssh directory, and the authorized_keys file.
Contenus pertinents
- demandé il y a 2 ans
- demandé il y a 3 jours
- demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- Comment ajouter de nouveaux comptes utilisateurs avec un accès SSH à mon instance Linux Amazon EC2 ?AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
I can't check the permissions as they are on the instance, the act of mounting the filesystem changes all the permissions and ownerships. I'm not sure what would have caused the permissions/ownerships to have changed anyway on the instance?
You will need to review to the OS level logs for that information.
You're right, sshd is reporting 'bad ownership or modes for directory /home/ec2-user', and the permissions for /home/ec2-user have changed from 700 to 775. Any ideas what might have caused the mode/ownership to change?
Found it. One of our build scripts creates a file using
umask 022
. I didn't realise it defaulted to use~
if the actual build location was missing - hence the permissions of~
and all its parent directories changed! Lesson learnt...