Post date: Jul 18, 2016 1:35:52 PM
Assuming you are using the vanilla AWS Linux.
make sure nano is installed
sudo yum install nano
Start nano, and load the sshd config:
sudo nano /etc/ssh/sshd_config
Allow root login and password authentication by commenting/uncommenting:
… PermitRootLogin yes # Only allow root to run commands over ssh, no shell #PermitRootLogin forced-commands-only … # To disable tunneled clear text passwords, change to no here! PasswordAuthentication yes #PermitEmptyPasswords no # EC2 uses keys for remote access #PasswordAuthentication no …
Reload the sshd settings:
sudo service sshd reload
Select a password for root:
sudo passwd root