How to Connect to Remote SSH Agents? Bee Bot July 13, 2022 11:18 Updated The content of this article has moved to the new documentation site. Related articles SSH Credentials Management with Jenkins How to use the SSH Agent Plugin Run SSH Agent using a command on controller How to troubleshoot 'hudson.FilePath is missing' in a Pipeline run How to Troubleshoot and Address Liveness / Readiness probe failure Comments 9 comments Sort by Date Votes João miguel Silva Ferreira February 14, 2017 14:41 This is the right way to connect to a slave. But there is a problem when you use this method for OSX slaves to run jobs that needs to use codesign. How can we have an OSX slave connecting via ssh keys and working properly with xcode build. Thank you 0 Arnaud Héritier February 14, 2017 21:27 Hi João AFAIK for OSX to have a proper integration with all xcode tools you need to have a real user session and thus to use a JNLP slave. With SSH you can open a user session and thus the emulator and others tools like this aren't working BR 1 Milind Bangar February 27, 2017 16:19 Hi, Good one.. Helps... We are trying similar from a Jenkins Box (Linux) and trying to connect to a Windows box, wherein Windows box is ssh server. We are using Key based connectivity. The 2 servers are in different domain. Result : SSH connectivity cannot be established. Is there anything like above, is addressed. Regards Milind 0 Arnaud Héritier February 27, 2017 21:27 > The 2 servers are in different domain. What do you mean Milind ? On different windows domains ? But both servers can reach each others ? Did you try from the linux box command line using ssh to connect to the windows box ? 0 Milind Bangar March 01, 2017 18:49 Hi Arnaud, No, not different domains , but different DMZs and traffic is routed via third party software. There is a trust between the domains (AD) to which the servers belong. We are able to RDP the server, but ssh does not work. Tried ssh from Linux box as well, but did not work. The windows boxes in the same domain , able to ssh and run scripts remotely. Hope I was clear. Regards Milind 0 Arnaud Héritier March 01, 2017 22:46 Hi Milind > different DMZs and traffic is routed via third party software Isn't it a firewall issue? Are you sure the SSH port is accessible ? 0 Pedro Cortes March 17, 2017 03:54 Hi, I have another trouble, I'm using Linux as master and AIX as slave, everything is set correctly, when I select the Launch agent in the slave, nothing happens, just an icon of a circle running is showed, if I go to the slave, the slave.jar file can be found, but in jenkins the next error is displayed: This node is offline because Jenkins failed to launch the slave agent on it. logs are empty too. Any idea what can be happening? Regards 0 Carlos leonardo camilo Vargas Huamán September 24, 2018 04:42 Thank you very much for the great information. I just have a question. I currently have a macOS High Sierra(my localhost machine). It was really amazing to be able to connect from my Jenkins master node to my macOS slave node through the Launch Agent via Java Web Start launch method. But I actually wanted to connect to my Unix slaves via SSH but I didn't get any result. In fact I can say that is so difficult to do it when working with macOS. I've tried a lot of things: 1. I've enabled the Preferences -> Sharing -> Remote Login -> Allow access for : All users. When I simply open my terminal: ssh username@private_ip I always get ssh_exchange_identification: Connection closed by remote host message. I've used the -v parameter the see the log and I always get errors like related to key_load_public. In conclusion, starting from this error all the others attempts I make have no results :( In a nutshell, the only way to connect o macOS slave is via Launch Agent via Java Web Start? 0 Andres D June 08, 2020 13:47 this works with Local accounts, is there any way to make this work with domain accounts? 0 Please sign in to leave a comment.