Fix Host-Key Errors
🔒 Security & Troubleshooting
·
Updated 5 days ago
Fix Host-Key Errors
Symptom: /setup-ssh or /diag reports the connection fails even though the credentials are correct.
Cause: The host key is not yet in ~/.ssh/known_hosts. Fleet Manager runs with BatchMode=yes and deliberately does not trust unknown hosts automatically.
Solution: Register the key once after reviewing the fingerprint:
ssh-keyscan -p <port> <host> >> ~/.ssh/known_hosts
Alternatively connect once manually (ssh -p <port> <user>@<host>) and accept the key. Then re-run /setup-ssh.