[JIRA] (JENKINS-59491) SSH slaves plugin support for proxy/ bastion/ jumpbox

20 views
Skip to first unread message

andreimuresianu1@gmail.com (JIRA)

unread,
Sep 23, 2019, 11:36:02 AM9/23/19
to jenkinsc...@googlegroups.com
Andrei Muresianu created an issue
 
Jenkins / Improvement JENKINS-59491
SSH slaves plugin support for proxy/ bastion/ jumpbox
Issue Type: Improvement Improvement
Assignee: Ivan Fernandez Calvo
Components: ssh-slaves-plugin
Created: 2019-09-23 15:35
Priority: Minor Minor
Reporter: Andrei Muresianu

I have a Jenkins Master running on serverA in vpcA.

I have a server serverB that leaves in vpcB that I would like to register as a Jenkins slave.

I have a jumpbox serverC that is accessible from anywhere.

I can connect from serverA to serverB if I proxy through serverC first.

I can connect with no problems with an ssh config file on the master similar to:
 

Host slave
  User andrei
  ProxyCommand ssh andrei@gateway nc %h %p

I would like to be able to connect serverB as a slave of Jenkins (serverA).
I looked into launching the agent via execution of command on the slave, but that requires the agent.jar to be placed there - is there another way of doing this? Surely if connection from the master to the slave is possible, this could be done automatically, perhaps as part of this plugin?
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kuisathaverat@gmail.com (JIRA)

unread,
Sep 23, 2019, 12:52:04 PM9/23/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo commented on Improvement JENKINS-59491
 
Re: SSH slaves plugin support for proxy/ bastion/ jumpbox

This is mostly an infrastructure thing, you can create a tunnel with ssh from the master to the agent through the bastion host, then you can use the local port of the tunnel to connect to the agent, see https://www.ssh.com/ssh/tunneling/example or https://www.tecmint.com/create-ssh-tunneling-port-forwarding-in-linux/

Reply all
Reply to author
Forward
0 new messages