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개 답변
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
전문가
답변함 일 년 전
0

Have you tried prefixing your .pem filename with ./

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

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠