1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
You are free to repurpose the default ec2-user
account as you wish. If you would like to create a different user ID for the purpose of logging in, you can do so. You'll just need to ensure that the user's home directory is set up and has the appropriate public ssh keys listed in its $HOME/.ssh/authorized-keys
file.
In fact, if you run AWS Systems Manager Session Manager on your EC2 instance, you don't need to use ssh
to log in at all; you can use Session Manager to log in. Session Manager uses a different user ID for logins (ssm-user
, id 1001).
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 5 ans
Thanks @Michael_F, this is what I suspected.