Backend Notes JUL 5, 2024 • 02 MIN READ
AGENT JENKINS
NOT CONNECT TO
SERVER JENKINS
Keeping this here: troubleshooting when a Jenkins agent generates a key but won’t connect.
How to solve?
After you generate key from agent jenkins, then you add key to server but your agent jenkins still can't connected, try this:
Execute this from agent jenkins.
ssh-keyscan -H 10.131.17.11 >> ~/.ssh/known_hosts
this will add key to .ssh/known_hosts