You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ssh session open for agent forwarding fails as part of ssh connection, no further connection attempts are made. Looking at the code, this is due to a deadlock on calling ssh Connect recursively.
When opening the ssh session for agent forwarding fails as part of the ssh connection, connection should be reattempted. Relevant log section:
remote-exec-provisioner (internal) 2019/12/11 14:43:16 [DEBUG] Telling SSH config to forward to agent
remote-exec-provisioner (internal) 2019/12/11 14:43:16 [DEBUG] Setting up a session to request agent forwarding
remote-exec-provisioner (internal) 2019/12/11 14:43:16 [DEBUG] opening new ssh session
remote-exec-provisioner (internal) 2019/12/11 14:43:16 [WARN] ssh session open error: 'ssh: unexpected packet in response to channel open: <nil>', attempting reconnect
Actual Behavior
No further connection attempts are made.
Steps to Reproduce
Unknown. On my scenario I suspect it is failing due to cloud init setting up ssh on the remote simultaneously, but have not been able to pinpoint a precise reason.
Additional Context
References
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Jan 16, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When ssh session open for agent forwarding fails as part of ssh connection, no further connection attempts are made. Looking at the code, this is due to a deadlock on calling ssh Connect recursively.
Fix attempt: #23661
Terraform Version
Terraform Configuration Files
Issue can happen with any ssh connection block that enables agent use either explicitly or implicitly by setting agent environment variables.
Debug Output
https://gist.github.com/jcaamano/2910aff27fd0d5cad0101c0334b04e18
Crash Output
Expected Behavior
When opening the ssh session for agent forwarding fails as part of the ssh connection, connection should be reattempted. Relevant log section:
Actual Behavior
No further connection attempts are made.
Steps to Reproduce
Unknown. On my scenario I suspect it is failing due to cloud init setting up ssh on the remote simultaneously, but have not been able to pinpoint a precise reason.
Additional Context
References
The text was updated successfully, but these errors were encountered: