Project Michael Dings Impressum Login

Howto-Enable-Root-Login-on-AWS

I am a Howto for the Configuration of Root-Login under AWS.

About

Steps

$ ssh -i /path/my-key-pair.pem ubuntu@ec2-remote-server.amazonaws.com
$ sudo -i bash
$ cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
$ vi /etc/ssh/sshd_config
-> PermitRootLogin yes
$ vi ~/.ssh/authorized_keys
-> Remove Line: no-port-forwarding ...
$ passwd root
$ systemctl restart ssh

Source