terminal scp Permission denied (publickey). code example
Example: scp permission denied (publickey) but ssh works
scp -i ~/.ssh/my-private-key.pem file.txt bitnami@example.com:/home/bitnami/
scp -i ~/.ssh/my-private-key.pem file.txt bitnami@example.com:/home/bitnami/