permission denined(public key)

0

while using scp method , permission denined(public key) err occures . "Permission denied" error occuring when attempting to SSH using the specified private key.

  • Please can you confirm the cli and the error.

7core
已提问 5 个月前216 查看次数
1 回答
0

This error typically means that the public key belonging to your private key is not stored on your instance. Assuming you are using standard SSH packages, please make sure that your public key is stored in the file ~/.ssh/authorized_keys (~ being the home directory of the user you are using to log in) on the instance.

See also Add or remove a public key on your instance for further details.

profile pictureAWS
Michael
已回答 5 个月前

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

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

回答问题的准则