0
0
Jenkinsdevops~5 mins

Agent connection methods (SSH, JNLP) in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is SSH in Jenkins agent connection?
SSH (Secure Shell) is a method Jenkins uses to connect to an agent by securely logging into the agent machine over the network using a username and password or SSH keys.
Click to reveal answer
beginner
What does JNLP stand for and how does it work in Jenkins?
JNLP stands for Java Network Launch Protocol. Jenkins agents use JNLP to connect by running a Java program on the agent machine that connects back to the Jenkins controller.
Click to reveal answer
intermediate
Which Jenkins agent connection method requires the agent to initiate the connection?
JNLP requires the agent to initiate the connection to the Jenkins controller, which is useful when the agent is behind a firewall or NAT.
Click to reveal answer
intermediate
What are the security benefits of using SSH for Jenkins agents?
SSH provides encrypted communication and strong authentication using keys or passwords, reducing the risk of unauthorized access to the agent machine.
Click to reveal answer
intermediate
When might you prefer JNLP over SSH for Jenkins agent connection?
You might prefer JNLP when the agent cannot accept incoming connections due to firewall restrictions or when you want the agent to connect to the controller on its own schedule.
Click to reveal answer
Which Jenkins agent connection method requires the master to connect to the agent?
ANeither SSH nor JNLP
BJNLP
CBoth SSH and JNLP
DSSH
What protocol does JNLP use to launch the Jenkins agent?
AJava Network Launch Protocol
BFTP
CHTTP
DSSH
Which method is better if the agent is behind a strict firewall blocking incoming connections?
ABoth are equally good
BSSH
CJNLP
DNeither works
What is a common authentication method used by SSH for Jenkins agents?
AUsername and password
BBoth A and C
CSSH keys
DNo authentication
Which Jenkins agent connection method requires Java to be installed on the agent machine?
AJNLP
BSSH
CBoth SSH and JNLP
DNeither
Explain the differences between SSH and JNLP agent connection methods in Jenkins.
Think about who initiates the connection and what protocols are used.
You got /5 concepts.
    Describe scenarios where you would choose JNLP over SSH for Jenkins agent connection.
    Consider network restrictions and agent environment.
    You got /4 concepts.