Не могу подключится к серверу через ssh и да и вообще точнее к EC2 Instance(AWS)

При попытки просто подключится от сайта точнее через обычную кнопку connect выдает вот такую ошибку: There was a problem connecting to your instance We were unable to connect to your instance. Make sure that your instance’s network settings are configured correctly for EC2 Instance Connect. For more information, see Task 1: Configure network access to an instance.

А через SSH ошибка выдается в таком формате : Warning: Permanently added 'ec2-34-201-36-36.compute-1.amazonaws.com,34.201.36.36' (ECDSA) to the list of known hosts. [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Пробовал to Edit User Data (in Actions) а именно просто вставил скрипт: Content-Type: multipart/mixed; boundary="//" MIME-Version: 1.0

--// Content-Type: text/cloud-config; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cloud-config.txt"

#cloud-config cloud_final_modules:

  • [scripts-user, always]

--// Content-Type: text/x-shellscript; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="userdata.txt"

#!/bin/bash OS_USER=@@@@@@ chown root:root /home chmod 755 /home chown $OS_USER:$OS_USER /home/$OS_USER -R chmod 700 /home/$OS_USER chmod 700 /home/$OS_USER/.ssh chmod 600 /home/$OS_USER/.ssh/authorized_keys --// c рекомендаций этого сайта : https://aws.amazon.com/ru/premiumsupport/knowledge-center/ec2-linux-fix-permission-denied-errors/#

НО ВСЕ НАПРАСНО ПОМОГИТЕ ПОЖАЛУЙСТА !!


Ответы (0 шт):