-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform provisioner connection - support for OpenSSH agent on Windows #35608
Comments
Hi @jexnator, Thanks for filing the issue! I think this is a result of how the upstream |
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Please note that provisioners are effectively deprecated, however upvoting issues such as this can help make a case for working on it. Thanks again! |
…eployment due to restrictions related to SSH agent forwarding with remote-exec provisioners. See hashicorp/terraform#35608
Terraform Version
Use Cases
Terraform's
Provisioner Connection
block on Windows currently only supports Pageant (PuTTY's SSH agent) for SSH agent forwarding usingremote-exec
. However, with the further development of OpenSSH as by default pre-installed SSH tool on Windows 10/11, it would be a nice-to-have to support the OpenSSH SSH agent in addition to Pageant.Background
I've created a small automation tool to help admins keep the hosting environment for WordPress on AWS Lightsail up to date. More information can be found in this GitHub repository.
The tool currently works perfectly on Unix-based systems (I use macOS) with SSH-agent forwarding via OpenSSH. It would be great if Windows users could also utilize the tool without having to adapt the setup specifically to Pageant.
Attempted Solutions
Manual SSH Command via PowerShell (Successful):
When running the following sequence in PowerShell on Windows, SSH agent forwarding with OpenSSH works as expected:
This process succeeds using OpenSSH (v9.5.0.0) in PowerShell (v7.4.4).
Remote Provisioner in Terraform (Failure):
When attempting the same with Terraform's
remote-exec
provisioner, it fails as only Pageant is supported:Error Output:
Proposal
Allow Terraform on Windows to support OpenSSH as an SSH agent, similar to how it functions on Unix-based systems. This would remove the dependency on Pageant and and would provide a uniform approach across operating systems.
Example:
References
N/A
The text was updated successfully, but these errors were encountered: