Olá,
Estou tento problemas para acessar a instância via terminal SSH, mesmo alterando as permissões da chave 400.
user@user-Inspiron-3421:/Documentos/AWS$ ssh -i LightsailDefaultKey-us-east-1.pem ubuntu@IP
The authenticity of host 'IP (IP)' can't be established.
ECDSA key fingerprint is SHA256:bQaM...................PeYrsMc.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'IP' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for 'LightsailDefaultKey-us-east-1.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "LightsailDefaultKey-us-east-1.pem": bad permissions
ubuntu@IP: Permission denied (publickey).
user@user-Inspiron-3421:/Documentos/AWS$ chmod 400 LightsailDefaultKey-us-east-1.pem
user@user-Inspiron-3421:/home/user/Documentos/AWS# ls -l
-r-------- 1 user user 1675 mai 13 21:25 LightsailDefaultKey-us-east-1.pem
user@user-Inspiron-3421:/home/user/Documentos/AWS#
user@user-Inspiron-3421:~/Documentos/AWS$ ssh -i LightsailDefaultKey-us-east-1.pem ubuntu@IP
ubuntu@IP: Permission denied (publickey).
Alguma ideia?
Obrigada.