SSH agent: `Host key verification failed.` or `No entry currently exists in the Known Hosts file for this host`
IntermediateTroubleshootingAgents, executors & the queue
Answer
Likely causes → Host key verification strategy is "Known hosts file" and the agent's key is not in the controller's known_hosts, or the agent was rebuilt with a new host key.
Diagnose → Check the node's Host Key Verification Strategy and ~jenkins/.ssh/known_hosts on the controller.
Fix → Add the new key (ssh-keyscan -t ed25519 10.0.4.12 >> known_hosts after verifying it out of band) or use "Manually provided key" in the node config.
Prevent → Manage host keys as code; do not use "Non verifying" strategy.
More on Agents, executors & the queue
Build stuck: `Still waiting to schedule task. ‘Jenkins’ doesn’t have label ‘docker’`Beginner`Waiting for next available executor on ‘linux’` for 20 minutes during peak hoursBeginner`All nodes of label ‘windows’ are offline`Beginner`hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@6e4b:agent-07": Remote call on agent-07 failed. The channel is closing down or has closed down`IntermediateInbound agent fails: `SEVERE: http://jenkins:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found`IntermediateAgent connects but builds fail with `java.io.IOException: Cannot run program "nohup" (in directory "C:\jenkins\workspace\app"): CreateProcess error=2`Beginner