backup SSH port fix

This commit is contained in:
Ali 2025-06-28 12:26:31 +01:00
parent 4385655b72
commit 768acfae54

View File

@ -778,20 +778,6 @@ configure_firewall() {
log "Firewall configuration completed."
}
# --- Previous lines of setup_harden_debian_ubuntu.sh unchanged ---
# --- VALIDATION FUNCTIONS (updated) ---
validate_port() {
local port="$1"
[[ "$port" =~ ^[0-9]+$ && "$port" -ge 1024 && "$port" -le 65535 ]]
}
validate_backup_port() {
local port="$1"
[[ "$port" =~ ^[0-9]+$ && "$port" -ge 1 && "$port" -le 65535 ]]
}
setup_backup() {
print_section "Backup Configuration (rsync over SSH)"