Month: November 2018

  • Auto root login Centos 7 / EL 7

    sed -i ‘/ExecStart/ s/agetty/agetty –autologin root/’ /etc/systemd/system/getty.target.wants/getty@tty1.service

  • Set up TOTP/Google authenticator on Centos 7

    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 ; PasswordAuthentication yes vim /etc/pam.d/ssh, add “auth required pam_google_authenticator.so” after the auth line with password. Now you can also set up httpd to use this:…