A
A
Azamat Baimurzin2016-01-10 14:17:03
SSH
Azamat Baimurzin, 2016-01-10 14:17:03

How to connect via Terminal (SSH) Ubuntu to EC2 amazon??

This is what we have
[email protected]:~/Downloads$ ssh -i "app.pem" [email protected]
The authenticity of host 'ec2-52-10-201-193.us-west-2.compute.amazonaws.com (52.10.201.193)' can't be established.
ECDSA key fingerprint is 11:86:0a:97:72:c5:41:ce:4d:3c:d1:05:6f:5e:0d:4b.
Are you sure you want to continue connecting (yes/no)? yes
Please type 'yes' or 'no': yes
Warning: Permanently added 'ec2-52-10-201-193.us-west-2.compute.amazonaws.com,52.10.201.193' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE!
Permissions 0664 for 'app.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: app.pem
Permission denied (publickey).
[email protected]:~/Downloads$ ssh -i "app.ppk" [email protected]
Enter passphrase for key ' app.ppk':
Permission denied (publickey).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2016-01-10
@inkvizitor68sl

chmod 0600 app.pem

S
Sergey Ivanov, 2016-01-24
@PyJa

When I log in, I just enter public ip, not DNS IP, as you enter. And there are no connection problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question