Main » 2012 » March » 31 » How to get ssh for root
1:05 AM How to get ssh for root |
Here is how to enable ssh access root on RedHat(ish) systems.
You need to change in /etc/ssh/sshd_config: PermitRootLogin noto PermitRootLogin yesand let sshd know its configuration needs to be re-read.
Here is a quick'n'dirty way to be executed from root account, or with sudo, sed -e "s/PermitRootLogin no/PermitRootLogin yes/" -i /etc/ssh/sshd_config /sbin/service sshd reloadto disable ssh root access: sed -e "s/PermitRootLogin yes/PermitRootLogin no/" -i /etc/ssh/sshd_config /sbin/service sshd reload |
|
Total comments: 0 | |