Auto root login Centos 7 / EL 7
sed -i '/ExecStart/ s/agetty/agetty --autologin root/' /etc/systemd/system/getty.target.wants/getty@tty1.service
sed -i '/ExecStart/ s/agetty/agetty --autologin root/' /etc/systemd/system/getty.target.wants/getty@tty1.service
Remember to keep an SSH session open (in a separate terminal) while doing this. yum install google-authenticator google-authenticator follow steps, save backup stuff vim /etc/ssh/sshd_config: ChallengeResponseAuthentication yes ; PermitRootLogin yes…