Skip to content
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

[Remote-SSH Bug]: Port forwarding stops working after reconnection using execServer #9921

Open
3 tasks done
jeanp413 opened this issue May 24, 2024 · 2 comments
Open
3 tasks done
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH

Comments

@jeanp413
Copy link

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It connects successfully

->

After a reconnection port forwarding is broken, need to remove the forwarded port from the ports view and add it again so it starts working again

Expected Behavior

Port forwarding should work after reconnection

Steps To Reproduce

  1. Set "remote.SSH.useExecServer": true in your vscode settings
  2. Connect to a remote machine using SSH and run some command that starts an http server
  3. Forward the remote port locally
  4. Run curl on the forwarded port , check it works
  5. Run the following in a local terminal ps -ejw | grep ssh and kill the ssh -v -T ... process. to force to reconnect
  6. Wait vscode reconnects
  7. Run curl on the forwarded port again, check it hangs forever 🐛

Remote-SSH Log

Remote-SSH Log

[PASTE LOG HERE]

Anything else?

No response

@jeanp413 jeanp413 added the ssh Issue in vscode-remote SSH label May 24, 2024
@jeanp413
Copy link
Author

cc @connor4312

@connor4312 connor4312 added the bug Issue identified by VS Code Team member as probable bug label May 24, 2024
@connor4312 connor4312 self-assigned this May 24, 2024
@torsteinmeyer
Copy link

I am also experiencing this issue when VSCode disconnects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

4 participants