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
IOError: closed stream
Session is closed immediately after authentication is accepted
Last debug log output shows completed authentication, then nothing (as though the session is fine), but the socket (or some underlying IO) is closed.
System configuration
net-ssh version: 7.0.1
Ruby version: 3.1.2
The text was updated successfully, but these errors were encountered:
sempervictus
changed the title
Amazon EC2 InstannceConnect Drops Session Immediately After Successful Auth
Amazon EC2 InstanceConnect Drops Session Immediately After Successful Auth
Feb 6, 2023
Figured it out - similar to inspec/train#271: SSM can't suffer channel manipulation very well. Solved on my end by capturing the initial channel in another object, but might be something to tweak upstream as an option passed on-init for these weird SSH "serial-port" style services.
Expected behavior
Configure AWS EC2 Instance Connect Session with SSH pubkey
returns the current directory
Actual behavior
IOError: closed stream
Session is closed immediately after authentication is accepted
Last debug log output shows completed authentication, then nothing (as though the session is fine), but the socket (or some underlying IO) is closed.
System configuration
The text was updated successfully, but these errors were encountered: