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.
https://github.com/jenkinsci/ec2-plugin/pull/276 fixes sshd for cygwin.
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?
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.