Overview - Agent connection methods (SSH, JNLP)
What is it?
Agent connection methods in Jenkins are ways for the main Jenkins server to communicate with its worker machines, called agents. Two common methods are SSH and JNLP. SSH uses a secure shell connection to run commands on the agent machine, while JNLP uses a Java program that the agent runs to connect back to the server. These methods let Jenkins distribute work to different machines safely and efficiently.
Why it matters
Without reliable agent connection methods, Jenkins cannot send tasks to worker machines, making it impossible to run builds or tests on different environments. This would slow down development and reduce automation benefits. Good connection methods ensure secure, stable, and flexible communication, which is critical for continuous integration and delivery pipelines.
Where it fits
Before learning agent connection methods, you should understand Jenkins architecture basics, including the roles of master and agents. After this, you can explore advanced agent management, security settings, and scaling Jenkins with many agents.