^ what Igor said.
AWS EC2 doesn't have root user enabled by default, but you can enable it.
To do so;
- Connect to user via ssh
- Gain root with sudo command
- Set root password with passwd command OR apply public key to authorized_keys
- Modify /etc/ssh/sshd_config and set PermitRootLogin...