Link Search Menu Expand Document

Connect to the server using SSH


To log in your EC2 instance and execute commands on the server using the command line, you need an SSH client and the server credentials.

These credentials consist of an SSH username and a private key.

The SSH username you should use to access your instance is ec2-user.

The private key is the one of the key pair that you associated to your instance the first time you deployed the server

Check the Amazon EC2 User Guide for Linux Instances to know how the SSH keys can be created or uploaded on the AWS Management Console.
If you did not associate a key pair with your EC2 instance or you lose the private key, you will not be able to log in to it. In this case, check the Amazon EC2 User Guide for Linux Instances or contact AWS support and follow their instructions to gain SSH access to your server.