-
Bug
-
Resolution: Unresolved
-
Critical
-
AWS EC2
Linux (Controller + Agents)
Windows (Agents)
Windows has a native port of OpenSSH since years now. Connecting to static Windows agents via SSH (SSH agent plugin) also works fine. But the EC2 plugin still insists on connecting through WinRM (which is a nightmare in itself) or requires the workaround of setting the type to "unix" (with all the implications this may have).
Please fix this bug.
This would be useful for me as well, although I'd classify it more as an enhancement.
For reference you can set up AWS instances to use SSH auth via what's described in https://jen20.dev/post/windows-amis-with-even-fewer-tears/
You can replace all the OpenSSH download stuff in that article with:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
I needed to remove the bit setting the default shell to Powershell as well (for Packer); not sure what this plugin expects.