Urgent Help Website Get DOWN FOR 3 DAYS WHILE SWITCH TO AMAZON hectic

0

ssh -i webstechnologys_testing.pem bitnami@PUBLIC IP hostkeys_find_by_key_hostfile: hostkeys_foreach failed for /Users/amirali/.ssh/known_hosts: Permission denied The authenticity of host 'PUBLIC IP (PUBLIC IP)' can't be established. ED25519 key fingerprint is SHA256:D1lVqRGzidmEU+ieKVmYViSgSnS0crDnR7+dMwYk6xA. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Failed to add the host to the list of known hosts (/Users/amirali/.ssh/known_hosts). bitnami@PUBLIC IP: Permission denied (publickey).

How would I resolve this issue. this time I use the public ip to connect however, the inside the light sail instance Ip is different which won't allow me to make connection to ssh. Therefore, I tried to access with Public IP which was mentioned below the instance

Kindly Assist me to solve this issue

已提问 1 年前276 查看次数
2 回答
0

Is the private key used for ssh correct?
Also, what are the permissions on "/Users/amirali/.ssh"?
If permissions are too open, an error may occur.
Try changing the permissions with the following command.

chmod 700 /Users/amirali/.ssh
profile picture
专家
已回答 1 年前
0

Have you tried prefixing your .pem filename with ./

The Lightsail documentation here mentions, not prefixing with ./ won't work.

AWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则