Last active
June 9, 2023 04:35
-
-
Save pacmac/b95b6e3029c0b9c57b5263fcb8597bb7 to your computer and use it in GitHub Desktop.
Allow Root Login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
## 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