SSH agent launch fails: `[SSH] Opening SSH connection to 10.0.4.12:22. ... Server rejected the 1 private key(s) for jenkins (credentialId:agent-ssh/method:publickey)`
IntermediateTroubleshootingAgents, executors & the queue
Answer
Likely causes → Public key not in the agent user's authorized_keys, wrong user, bad file permissions, or key type disabled by the server.
Diagnose → On the agent: ls -la ~jenkins/.ssh, journalctl -u ssh for the rejection reason; test from the controller with the same key.
Fix → Add the key, fix permissions (700 ~/.ssh, 600 authorized_keys), use an ed25519 or RSA key the server accepts.
Prevent → Provision agents with configuration management and keep the key in JCasC credentials.
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