scp returns Permission denied (publickey). code example
Example: scp permission denied (publickey) but ssh works
scp -i ~/.ssh/my-private-key.pem file.txt [email protected]:/home/bitnami/
scp -i ~/.ssh/my-private-key.pem file.txt [email protected]:/home/bitnami/