Skip to main content

How to Connect to Remote SSH Agents?

Comments

9 comments

  • João miguel Silva Ferreira

    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

    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

    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

    > 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

    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

    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

    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
  • 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

    this works with Local accounts, is there any way to make this work with domain accounts?

    0

Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.