vscode-remote-release
vscode-remote-release copied to clipboard
[Remote-SSH Bug]: Port forwarding stops working after reconnection using execServer
Is there an existing issue for this bug?
- [X] I have searched the existing issues
Required Troubleshooting Steps
- [X] I have followed these troubleshooting steps
- [X] I have tried both values of the
remote.SSH.useLocalServersetting
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
- Set
"remote.SSH.useExecServer": truein your vscode settings - Connect to a remote machine using SSH and run some command that starts an http server
- Forward the remote port locally
- Run
curlon the forwarded port , check it works - Run the following in a local terminal
ps -ejw | grep sshand kill thessh -v -T ...process. to force to reconnect - Wait vscode reconnects
- Run
curlon the forwarded port again, check it hangs forever 🐛
Remote-SSH Log
Remote-SSH Log
[PASTE LOG HERE]
Anything else?
No response
cc @connor4312
I am also experiencing this issue when VSCode disconnects.
This should be fixed in the latest Remote - SSH prerelease