Permission Denied (Publickey) When Using Ssh
I Have Ubuntu 20.04 Running in Virtualbox as My Control Node. I Am Using Aws Ec2 Instances (Ubuntu) for My Remote Servers. Every Time I Try to Ssh into One of...
I have Ubuntu 20.04 running in VirtualBox as my control node. I am using AWS EC2 instances (Ubuntu) for my remote servers.
Every time I try to ssh into one of my EC2 instances I get " Permission Denied (publickey) ". I generate the key with no issues, but get the error when I try to run
sudo ssh-copy-id -i <key>.pub
I'm really new to Linux and AWS altogether so I'm wondering if there's something misconfigured somewhere in my AWS instance.