Difference between revisions of "Enable root ssh access on Amazon AWS server"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with ' passwd root and set the password for root user. Edit /etc/ssh/sshd_config and set/uncomment: PermitRootLogin yes PasswordAuthentication yes Reload service: service sshd …')
(No difference)

Revision as of 11:32, 20 September 2021

passwd root

and set the password for root user.

Edit /etc/ssh/sshd_config and set/uncomment:

PermitRootLogin yes
PasswordAuthentication yes

Reload service:

service sshd reload

Edit /etc/cloud/cloud.cfg and set:

disable_root: 0
ssh_pwauth:   1

Remove first line from /root/.ssh/authorized_keys