permission denied (publickey) ssh linux code example
Example 1: ssh error permission denied (publickey)
sudo service ssh restart
Example 2: scp permission denied (publickey) but ssh works
scp -i ~/.ssh/my-private-key.pem file.txt [email protected]:/home/bitnami/