Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70679

How can I pass configuration options to ssh when connecting to a slave?

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • ssh-slaves-plugin
    • None
    • Jenkins 2.361.4 using the jenkins/jenkins image from DockerHub.
      SSH Build Agents plugin version 2.854.v7fd446b_337c9.

      In order to be able to connect from the machine hosting my jenkins server to a Windows slave via ssh I have to pass the option -c aes128-ctr to the ssh command. I can do it from inside the container where my Jenkins server is running.

      How can I set this configuration option to the embedded ssh in Jenkins?

      For the command line, I can avoid the need to pass the option explicitly by putting something like this in the ~/.ssh/config file:

      Host slave_name
        Ciphers aes128-ctr
      

      It seems that Jenkins's ssh isn't reading this file though.

      I've looked at the plugin source but I couldn't find any mention of the configuration file.

            ifernandezcalvo Ivan Fernandez Calvo
            gnustavo Gustavo Chaves
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: