Skip to content

Instantly share code, notes, and snippets.

@pacmac
Last active June 9, 2023 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacmac/b95b6e3029c0b9c57b5263fcb8597bb7 to your computer and use it in GitHub Desktop.
Save pacmac/b95b6e3029c0b9c57b5263fcb8597bb7 to your computer and use it in GitHub Desktop.
Allow Root Login
/*
## bash <(curl -Ls https://gist.githubusercontent.com/pacmac/b95b6e3029c0b9c57b5263fcb8597bb7/raw/sshroot.sh);
## bash <(curl -Ls https://tinyurl.com/rootssh);
*/
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
cat /etc/ssh/sshd_config | grep "PermitRootLogin"
systemctl restart sshd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment