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 Antworten
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
EXPERTE
beantwortet vor einem Jahr
0

Have you tried prefixing your .pem filename with ./

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

AWS
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen