Filip Pytloun | 896f37b | 2015-06-25 18:35:42 +0200 | [diff] [blame] | 1 | # Auto login root on tty1 |
2 | sed -i 's|/sbin/getty|/sbin/getty --autologin root|g' /etc/init/tty1.conf | ||||
3 | |||||
4 | # Disable password root login | ||||
5 | usermod -p '!' root | ||||
6 | |||||
7 | # Disable SSH password authentication and permit root login | ||||
8 | sed -i 's|[#]*PasswordAuthentication yes|PasswordAuthentication no|g' /etc/ssh/sshd_config | ||||
9 | sed -i 's|[#]*PermitRootLogin no|PermitRootLogin yes|g' /etc/ssh/sshd_config |