- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains - Omit embedded publish git dirs and empty placeholders from index Made-with: Cursor
13 lines
490 B
Bash
Executable File
13 lines
490 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Remove stale OpenSSH host key for r630-04 after reinstall or key rotation.
|
|
# Confirm the new host fingerprint out-of-band before accepting on next connect.
|
|
set -euo pipefail
|
|
HOST="${1:-192.168.11.14}"
|
|
KH="${SSH_KNOWN_HOSTS:-$HOME/.ssh/known_hosts}"
|
|
if [[ ! -f "$KH" ]]; then
|
|
echo "No known_hosts at $KH" >&2
|
|
exit 1
|
|
fi
|
|
ssh-keygen -f "$KH" -R "$HOST" >/dev/null 2>&1 || true
|
|
echo "Removed $HOST from $KH — next: ssh -o StrictHostKeyChecking=accept-new root@$HOST"
|