How do I SSH into my EC2 instance via a command line?

Teradata Database on AWS
Teradata Employee

How do I SSH into my EC2 instance via a command line?

How do I ssh to my instance using command line

2 REPLIES
N/A

Re: How do I SSH into my EC2 instance via a command line?

ssh -i /path/to/your/keyfile ec_user@Your_Public_DNS


Teradata Employee

Re: How do I SSH into my EC2 instance via a command line?

It'll be as ulrich said, but the user is ec2-user instead of ec_user. So you'll need to run:

ssh -i keyfile.pem ec2-user@<public_dns_name>