scp Permission denied (publickey). lost connection 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/