How do I log into my EC2 Linux Instance via Telnet Client?

0

I am able to telnet INTO my instance, and it is prompting me for a username and password.

However, now I am at a loss on ho to create said username and password to actually log in, or find the existing one. (if there is one assigned)

Hijak3k
demandé il y a 6 mois429 vues
1 réponse
0
Réponse acceptée

There are no users with a pre-set password when an EC2 is initially stood up with an AMI.

To set one up, access your instance using SSH (or Instance Connect, or Systems Manager) as the default user - on Amazon Linux this is ec2-user

Elevate yourself to the root user sudo su -

Add a new user and set its password https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s2-users-cl-tools

Enter this new user's credentials and password when you telnet to the EC2.

profile picture
EXPERT
Steve_M
répondu il y a 6 mois
profile picture
EXPERT
vérifié il y a 6 mois
profile pictureAWS
EXPERT
vérifié il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions