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

EC2 Plugin - Windows sshd support - use ssh + pubkey option instead of winrm

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ec2-plugin
    • None

      It would be nice to have the option to use ssh with windows on ec2.  Currently, we don't have that option and forced to use WinRM.  Unfortunately, 

      I have a working example of a windows instance that runs opensshd if that would be helpful.

       

          [JENKINS-50308] EC2 Plugin - Windows sshd support - use ssh + pubkey option instead of winrm

          Alexander A added a comment -

          Alexander A added a comment - https://github.com/jenkinsci/ec2-plugin/pull/276 fixes sshd for cygwin.

          Willie Loyd Tandingan added a comment - Windows Server 2019 now ships with OpenSSH ( https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview ).

          If you configure a windows instance as a unix node with the appropriate user and temp directory it should connect, have you tried that?

          Raihaan Shouhell added a comment - If you configure a windows instance as a unix node with the appropriate user and temp directory it should connect, have you tried that?

          Brian Kruger added a comment -

          It's been a couple of years,  but no, it didn't work. (Maybe win10 is different).  There was a lot of hard coding of things. (Pkg manager to install ssh related items, paths to executables, etc.)

           

          Brian Kruger added a comment - It's been a couple of years,  but no, it didn't work. (Maybe win10 is different).  There was a lot of hard coding of things. (Pkg manager to install ssh related items, paths to executables, etc.)  

          I was able to make this work by modifying the plugin: https://github.com/n3v3rf411/ec2-plugin/commit/97d6173c324fd8a036f793687919153be21721a7

          This adds the following connection type:

           

          We are currently using this in production to perform tasks on Windows servers.

           

          Willie Loyd Tandingan added a comment - I was able to make this work by modifying the plugin:  https://github.com/n3v3rf411/ec2-plugin/commit/97d6173c324fd8a036f793687919153be21721a7 This adds the following connection type:   We are currently using this in production to perform tasks on Windows servers.  

            francisu Francis Upton
            bkruger Brian Kruger
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: