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 using SSH (ssh coder.workspace), the connection remains active after being disconnected from agent.
Steps to reproduce:
coder create workspace
ssh coder.workspace
coder delete workspace (or stop, start)
After step 3, the SSH command remains running until user input. After the switch to Tailscale networking, this applies for both ssh using ProxyCommand and coder ssh. (Also applies to other commands using SSH, like sftp.)
Typically when an SSH server goes away, the client is notified and we see something like:
Connection to [host] closed by remote host.
Connection to [host] closed.
Ideally we would also detect this client-side by checking workspace status from the coder API, if we're trying to connect to an outdated agent (i.e. workspace state changed after connection), we should either:
Disconnect and exit
Reconnect with a "Reconnected, but previous state was lost" (this is not a good message, just to illustrate)
The text was updated successfully, but these errors were encountered:
mafredri
changed the title
SSH connection seems to remain active after being disconnected from agent (ssh, not coder ssh)
SSH connection seems to remain active after being disconnected from agent
Oct 27, 2022
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.
When using SSH (
ssh coder.workspace
), the connection remains active after being disconnected from agent.Steps to reproduce:
coder create workspace
ssh coder.workspace
coder delete workspace
(orstop
,start
)After step 3, the SSH command remains running until user input. After the switch to Tailscale networking, this applies for both
ssh
usingProxyCommand
andcoder ssh
. (Also applies to other commands using SSH, likesftp
.)Typically when an SSH server goes away, the client is notified and we see something like:
Ideally we would also detect this client-side by checking workspace status from the coder API, if we're trying to connect to an outdated agent (i.e. workspace state changed after connection), we should either:
The text was updated successfully, but these errors were encountered: