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 …') |
|||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
service sshd reload | service sshd reload | ||
Remove first line from /root/.ssh/authorized_keys | |||
<br><br> | |||
After setting up the system, this one can be changed back: | |||
PasswordAuthentication no | |||
Reload service: | |||
service sshd reload |
Latest revision as of 11:46, 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
Remove first line from /root/.ssh/authorized_keys
After setting up the system, this one can be changed back:
PasswordAuthentication no
Reload service:
service sshd reload