Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/infra/hub/sshd-keepalive-rollback.sh # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / infra / hub / sshd-keepalive-rollback.sh` 13 lines ยท 769 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # Undo hub/sshd-keepalive-apply.sh on the hub Pi: remove the drop-in, `sshd -t`, reload ssh. 3 # sudo bash /hub/sshd-keepalive-rollback.sh 4 set -euo pipefail 5 DST=${SSHD_DROPIN:-/etc/ssh/sshd_config.d/40-forward-keepalive.conf} 6 die() { echo "sshd-keepalive-rollback: FAIL: $*" >&2; exit 1; } 7 [ "$(id -u)" = 0 ] || die "run as root (sudo)" 8 [ -f "$DST" ] || die "$DST is not installed" 9 grep -q 'forge-iplreach' "$DST" || die "$DST is not ours (no forge-iplreach marker); not removing" 10 rm -f -- "$DST" 11 sshd -t || die "sshd -t fails after removing $DST" 12 ${SSHD_RELOAD:-systemctl reload ssh} 13 echo "sshd-keepalive-rollback: removed $DST, reloaded; now: $(sshd -T 2>/dev/null | grep -E '^clientalive(interval|countmax) ' | sort | tr '\n' ' ')"