feat(tools): add root-ssh-login tool to enable or disable root SSH password login

- add tools/root-ssh-login.sh with interactive menu, --enable/--disable/--status flags, and sshd drop-in config management
- register root-ssh-login in lxs.sh dispatch and tools/index.sh interactive menu
- document new tool in README.md command reference and project structure
This commit is contained in:
2026-05-12 21:42:12 -04:00
parent fc50a71763
commit c3002ef274
4 changed files with 197 additions and 3 deletions
+4 -2
View File
@@ -62,9 +62,10 @@ menu_tools() {
echo -e " ${YELLOW}[3]${NC} Harden Server"
echo -e " ${GREEN}[4]${NC} Change Root Password"
echo -e " ${CYAN}[5]${NC} Update Server"
echo -e " ${YELLOW}[6]${NC} Root SSH Password Login"
echo -e " ${RED}[0]${NC} Back"
echo ""
echo -e -n "${BOLD}Choice [0-5]: ${NC}"
echo -e -n "${BOLD}Choice [0-6]: ${NC}"
read -r choice
case $choice in
@@ -73,8 +74,9 @@ menu_tools() {
3) run_sibling "tools/harden.sh" ;;
4) run_sibling "tools/root-password.sh" ;;
5) run_sibling "tools/update-server.sh" ;;
6) run_sibling "tools/root-ssh-login.sh" ;;
0) return ;;
*) echo -e "${RED}[✗] Invalid option. Please select 0-5.${NC}"; sleep 1; continue ;;
*) echo -e "${RED}[✗] Invalid option. Please select 0-6.${NC}"; sleep 1; continue ;;
esac
if [ "$choice" != "0" ]; then