ssh permission denied (publickey) windows code example
Example 1: permission denied (publickey password)
cat ~/.ssh/id_rsa.pub | ssh @ 'cat >> .ssh/authorized_keys && echo "Key copied"'
Example 2: scp permission denied (publickey) but ssh works
scp -i ~/.ssh/my-private-key.pem file.txt [email protected]:/home/bitnami/