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

2 Answers
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
EXPERT
answered 10 months ago
0

Have you tried prefixing your .pem filename with ./

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

AWS
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions