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
connect ubuntu via ssh, browsing and edit remote file work fine.
open a new terminal, it display 'Starting...'
Please refer to the attachment trace log for more information. vscode trace log.txt
Reacted by CodingPuppy, Giuliana, Peter ONeill, Karthikeyan, Chris Lloyd, Steven Fitzpatrick, Yanlin, Huahuan Zheng, Diego Magdaleno, Josh Varty and 1 more
Reacted by Japillow, Giuliana and Andri Rakotomalala
It seems this issue is related with ssh tunnel.
Can you help confirm what vscode exactly did when trying to prepare the ssh tunnel?
e.g.
[01:29:55.533] Remote server is listening on port 34100
[01:29:55.533] Parsed server configuration: {"agentPort":34100,"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/run/user/1000"} [01:29:55.539] Starting forwarding server. localPort 53817 -> socksPort 53812 -> remotePort 34100 [01:29:55.543] Forwarding server listening on 53817
[01:29:55.543] Waiting for ssh tunnel to be ready [01:29:55.548] Tunneled remote port 34100 to local port 53817
[01:29:55.549] Resolved "ssh-remote+crpig" to "127.0.0.1:53817"
Same issue. It was working fine 2-3 days back. But after the update restarted the IDE and SSH is stuck at starting....
VSCode Version: (initial) : 1.41.1
Local OS Version: Windows 10
Remote OS Version: centOS
Remote Extension/Connection Type: SSH
same issue, I am not sure if this issue belongs to vscode, because I tested using two ubuntu server, both server AllowTCPForwarding set to true. one is good and another one keep starting in open remote terminal, I can open remote folders and browse files, but almost all remote extensions not work, in ubuntu server I can see lots of socket in close wait state
Logs in Remote SSH:
[18:08:54.461] Remote server is listening on port 48797
[18:08:54.462] Parsed server configuration: {"agentPort":48797,"osReleaseId":"centos","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/run/user/2040415","platform":"linux"}
[18:08:54.465] Starting forwarding server. localPort 56287 -> socksPort 56273 -> remotePort 48797
[18:08:54.466] Forwarding server listening on 56287
[18:08:54.466] Waiting for ssh tunnel to be ready
[18:08:54.471] Tunneled remote port 48797 to local port 56287
[18:08:54.471] Resolved "ssh-remote+157" to "127.0.0.1:56287"
[18:08:54.473] [Forwarding server 56287] Got connection 0
[18:08:54.488] ------
[18:08:54.529] [Forwarding server 56287] Got connection 1
[18:08:54.532] [Forwarding server 56287] Got connection 2
[18:09:19.613] [Forwarding server 56287] Got connection 3
Logs in Remote Server:
[2020-04-10 18:08:54.079] [remoteagent] [info] Extension host agent started.
[2020-04-10 18:08:54.638] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] New connection established.
[2020-04-10 18:08:54.650] [remoteagent] [info] [127.0.0.1][7a8dd019][ManagementConnection] New connection established.
[2020-04-10 18:08:57.030] [remoteagent] [info] Deleted from disk ms-python.python /home/oswang/.vscode-server/extensions/ms-python.python-2020.3.71113
[2020-04-10 18:09:19.682] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
[2020-04-10 18:09:44.738] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
[2020-04-10 18:10:09.773] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
[2020-04-10 18:10:34.823] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
Logs in Window:
[2020-04-10 18:09:14.607] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:09:14.607] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:09:19.608] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:09:19.608] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:09:19.646] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:09:39.652] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:09:39.653] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:09:44.654] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:09:44.654] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:09:44.702] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:10:04.707] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:10:04.707] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:10:09.708] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:10:09.708] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:10:09.736] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:10:29.743] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:10:29.743] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:10:34.744] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:10:34.744] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:10:34.788] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:10:54.794] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:10:54.794] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:10:59.795] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:10:59.795] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:10:59.829] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:11:19.640] [renderer7] [error] read ECONNRESET: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:183:27)
[2020-04-10 18:11:19.835] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:11:19.835] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:11:24.836] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:11:24.836] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:11:24.869] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
I am seeing the same issue as well. Remote ssh terminal is not opening, my remote ssh server is ubuntu, client is windows 10. Attached the vscode version file as PNG
the Log(Window) shows:
[2020-11-11 22:57:27.543] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] reconnected!
[2020-11-11 22:57:47.138] [renderer1] [error] read ECONNRESET: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:200:27)
[2020-11-11 22:57:47.549] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-11-11 22:57:47.549] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] waiting for 5 seconds before reconnecting...
[2020-11-11 22:57:52.550] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] resolving connection...
[2020-11-11 22:57:52.550] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] connecting to 127.0.0.1:53773...
[2020-11-11 22:57:52.807] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] reconnected!
Log(Remote Server) shows this
[2020-11-11 22:57:32.307] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
[2020-11-11 22:57:57.571] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
[2020-11-11 22:58:22.678] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
[2020-11-11 22:58:48.544] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
I debugged this issue at least for WSL and I dont know if this could be helpful:
What I do because I get annoyed if I have to type my SSH passphrase for Git, is setting up SSH_AUTH_SOCK to another socket that forwards the request to the SSH agent on Windows, here is the setup:
This however breaks VScode, not only the terminal but it also breaks stuff like the Rust extension, however, when I tell bash to don't source this configuration files, everything works again, I don't know if its possible to make VScode use its own GPG and SSH sockets so it doesn't conflict with my forwarded sockets (I really don't know if that's the issue but it seems like it).
I can share logs but I don't notice a relevant difference:
With no GPG or SSH agent forwarding:
*
* Visual Studio Code Server
*
* Reminder: You may only use this software with Visual Studio family products,
* as described in the license https://aka.ms/vscode-remote/license
*
[2021-01-12 12:44:14.323] [remoteagent] [info] Extension host agent started.
[2021-01-12 12:44:14.493] [remoteagent] [info] [::ffff:172.22.128.1][e6dea9d3][ExtensionHostConnection] New connection established.
[2021-01-12 12:44:14.494] [remoteagent] [info] [::ffff:172.22.128.1][6855c6d6][ManagementConnection] New connection established.
[2021-01-12 12:44:14.541] [remoteagent] [info] Listing 0 persistent terminals, 0 total terminals
[2021-01-12 12:44:15.011] [remoteagent] [info] [::ffff:172.22.128.1][e6dea9d3][ExtensionHostConnection] <6442> Launched Extension Host Process.
[2021-01-12 12:44:23.818] [remoteagent] [warning] [File Watcher (chokidar)] Error: Circular symlink detected: "/mnt/c/Users/DiegoMagdaleno/AppData/Local/Application Data" points to "/mnt/c/Users/DiegoMagdaleno/AppData/Local"
[2021-01-12 12:55:22.993] [remoteagent] [info] [::ffff:172.22.128.1][e6dea9d3][ExtensionHostConnection] The client has reconnected.
[2021-01-12 12:55:44.283] [remoteagent] [info] [::ffff:172.22.128.1][6855c6d6][ManagementConnection] The client has reconnected.
[2021-01-12 12:55:48.190] [remoteagent] [info] [::ffff:172.22.128.1][e6dea9d3][ExtensionHostConnection] The client has reconnected.
[2021-01-12 12:56:55.165] [remoteagent] [info] [::ffff:172.22.128.1][6855c6d6][ManagementConnection] The client has reconnected.
[2021-01-12 12:57:03.738] [remoteagent] [info] [::ffff:172.22.128.1][e6dea9d3][ExtensionHostConnection] The client has reconnected.
[2021-01-12 12:57:28.874] [remoteagent] [info] [::ffff:172.22.128.1][e6dea9d3][ExtensionHostConnection] The client has reconnected.
[2021-01-12 12:57:53.999] [remoteagent] [info] [::ffff:172.22.128.1][e6dea9d3][ExtensionHostConnection] The client has reconnected.
With GPG and SSH forwarding:
[2021-01-12 13:01:16.397] [remoteagent] [info]
*
* Visual Studio Code Server
*
* Reminder: You may only use this software with Visual Studio family products,
* as described in the license https://aka.ms/vscode-remote/license
*
[2021-01-12 13:01:16.397] [remoteagent] [info] Extension host agent started.
[2021-01-12 13:01:16.911] [remoteagent] [info] [::ffff:172.22.128.1][b43edb17][ManagementConnection] New connection established.
[2021-01-12 13:01:16.917] [remoteagent] [info] [::ffff:172.22.128.1][71c2ebb8][ExtensionHostConnection] New connection established.
[2021-01-12 13:01:17.149] [remoteagent] [info] Listing 0 persistent terminals, 0 total terminals
[2021-01-12 13:01:26.483] [remoteagent] [warning] [File Watcher (chokidar)] Error: Circular symlink detected: "/mnt/c/Users/DiegoMagdaleno/AppData/Local/Application Data" points to "/mnt/c/Users/DiegoMagdaleno/AppData/Local"
I can provide any other logs that im asked about here is my env with SSH and GPG forwarding:
Fixed the issue above, basically I don't know why but I was always forwarding stuff again and again, now it only does it once, I added the following line as an if condition in the scripts above: ps -eo args= | grep -q "^socat UNIX-LISTEN:$sock";
This fixed everything! If someone has a similar WSL setup to mine or similar SSH setup, this is a good solution.
Not sure if it will help anyone, but I experienced a similar problem with no luck troubleshooting. Come to find out, I had enabled a script to run every time I ssh into my server to log all terminal input and output using the Linux script command. After disabling, vscode started working as usual.
For what it's worth, I was able to fix the issue pretty simply by logging into the remote node through an ssh connection outside of vscode and then renaming /home/<user>/.vscode-server so that the remote server reinstalled the next time I attempted to connect.
Activity
crpig commentedon Feb 27, 2020
It seems this issue is related with ssh tunnel.
Can you help confirm what vscode exactly did when trying to prepare the ssh tunnel?
e.g.
[01:29:55.533] Remote server is listening on port 34100
[01:29:55.533] Parsed server configuration: {"agentPort":34100,"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/run/user/1000"}
[01:29:55.539] Starting forwarding server. localPort 53817 -> socksPort 53812 -> remotePort 34100
[01:29:55.543] Forwarding server listening on 53817
[01:29:55.543] Waiting for ssh tunnel to be ready
[01:29:55.548] Tunneled remote port 34100 to local port 53817
[01:29:55.549] Resolved "ssh-remote+crpig" to "127.0.0.1:53817"
Tyriar commentedon Mar 2, 2020
If the rest of VS Code works it shouldn't be related to the SSH tunnel. It's likely a race condition in the terminal.
pshroff04 commentedon Apr 8, 2020
Same issue. It was working fine 2-3 days back. But after the update restarted the IDE and SSH is stuck at starting....
VSCode Version: (initial) : 1.41.1
Local OS Version: Windows 10
Remote OS Version: centOS
Remote Extension/Connection Type: SSH
CodingPapi commentedon Apr 10, 2020
same issue, I am not sure if this issue belongs to vscode, because I tested using two ubuntu server, both server AllowTCPForwarding set to true. one is good and another one keep starting in open remote terminal, I can open remote folders and browse files, but almost all remote extensions not work, in ubuntu server I can see lots of socket in close wait state
tcp 0 0 127.0.0.1:48071 127.0.0.1:36445 CLOSE_WAIT -
tcp 0 0 127.0.0.1:48071 127.0.0.1:36471 CLOSE_WAIT -
tcp 0 0 127.0.0.1:48071 127.0.0.1:35171 CLOSE_WAIT -
tcp 0 0 127.0.0.1:50670 127.0.0.1:59445 CLOSE_WAIT -
tcp 0 0 127.0.0.1:50670 127.0.0.1:59494 CLOSE_WAIT -
tcp 0 0 127.0.0.1:48071 127.0.0.1:35215 CLOSE_WAIT -
Logs in Remote SSH:
[18:08:54.461] Remote server is listening on port 48797
[18:08:54.462] Parsed server configuration: {"agentPort":48797,"osReleaseId":"centos","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/run/user/2040415","platform":"linux"}
[18:08:54.465] Starting forwarding server. localPort 56287 -> socksPort 56273 -> remotePort 48797
[18:08:54.466] Forwarding server listening on 56287
[18:08:54.466] Waiting for ssh tunnel to be ready
[18:08:54.471] Tunneled remote port 48797 to local port 56287
[18:08:54.471] Resolved "ssh-remote+157" to "127.0.0.1:56287"
[18:08:54.473] [Forwarding server 56287] Got connection 0
[18:08:54.488] ------
[18:08:54.529] [Forwarding server 56287] Got connection 1
[18:08:54.532] [Forwarding server 56287] Got connection 2
[18:09:19.613] [Forwarding server 56287] Got connection 3
Logs in Remote Server:
[2020-04-10 18:08:54.079] [remoteagent] [info] Extension host agent started.
[2020-04-10 18:08:54.638] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] New connection established.
[2020-04-10 18:08:54.650] [remoteagent] [info] [127.0.0.1][7a8dd019][ManagementConnection] New connection established.
[2020-04-10 18:08:57.030] [remoteagent] [info] Deleted from disk ms-python.python /home/oswang/.vscode-server/extensions/ms-python.python-2020.3.71113
[2020-04-10 18:09:19.682] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
[2020-04-10 18:09:44.738] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
[2020-04-10 18:10:09.773] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
[2020-04-10 18:10:34.823] [remoteagent] [info] [127.0.0.1][2a030463][ExtensionHostConnection] The client has reconnected.
Logs in Window:
[2020-04-10 18:09:14.607] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:09:14.607] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:09:19.608] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:09:19.608] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:09:19.646] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:09:39.652] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:09:39.653] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:09:44.654] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:09:44.654] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:09:44.702] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:10:04.707] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:10:04.707] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:10:09.708] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:10:09.708] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:10:09.736] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:10:29.743] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:10:29.743] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:10:34.744] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:10:34.744] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:10:34.788] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:10:54.794] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:10:54.794] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:10:59.795] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:10:59.795] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:10:59.829] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
[2020-04-10 18:11:19.640] [renderer7] [error] read ECONNRESET: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:183:27)
[2020-04-10 18:11:19.835] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-04-10 18:11:19.835] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] waiting for 5 seconds before reconnecting...
[2020-04-10 18:11:24.836] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] resolving connection...
[2020-04-10 18:11:24.836] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] connecting to 127.0.0.1:56287...
[2020-04-10 18:11:24.869] [renderer7] [info] [remote-connection][ExtensionHost][2a030…][reconnect] reconnected!
cncolder commentedon Sep 27, 2020
I have the same issue.
Fixed after ssh as
rootRanjeetEppa18 commentedon Oct 29, 2020
I connected via
.pemfileIt is connected successfully but the terminal always keeps showing Starting...
[Edit]
After opening the root folder, it solved the problem. but doesn't work on selecting internal folders
gowtham614 commentedon Nov 12, 2020
I am seeing the same issue as well. Remote ssh terminal is not opening, my remote ssh server is ubuntu, client is windows 10. Attached the vscode version file as PNG


the Log(Window) shows:
[2020-11-11 22:57:27.543] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] reconnected!
[2020-11-11 22:57:47.138] [renderer1] [error] read ECONNRESET: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:200:27)
[2020-11-11 22:57:47.549] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
[2020-11-11 22:57:47.549] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] waiting for 5 seconds before reconnecting...
[2020-11-11 22:57:52.550] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] resolving connection...
[2020-11-11 22:57:52.550] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] connecting to 127.0.0.1:53773...
[2020-11-11 22:57:52.807] [renderer1] [info] [remote-connection][ExtensionHost][39d24…][reconnect] reconnected!
Log(Remote Server) shows this
[2020-11-11 22:57:32.307] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
[2020-11-11 22:57:57.571] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
[2020-11-11 22:58:22.678] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
[2020-11-11 22:58:48.544] [remoteagent] [info] [127.0.0.1][39d24d89][ExtensionHostConnection] The client has reconnected.
4F2E4A2E commentedon Dec 7, 2020
on centos8.2-minimal the dev pkgs are required in order for vscode-server to be installed correctly:
sudo yum -y update sudo yum -y groupinstall "Development Tools"mimikun commentedon Jan 6, 2021
I have same issue.
but, my remote host is WSL.
Versions:
DiegoMagdaleno commentedon Jan 12, 2021
+1 for this in WSL
Tyriar commentedon Jan 12, 2021
This may get better/fixed in 1.53 due to microsoft/vscode#113938
DiegoMagdaleno commentedon Jan 12, 2021
I debugged this issue at least for WSL and I dont know if this could be helpful:
What I do because I get annoyed if I have to type my SSH passphrase for Git, is setting up SSH_AUTH_SOCK to another socket that forwards the request to the SSH agent on Windows, here is the setup:
SSH agent forwarding:
GPG agent forwarding
This however breaks VScode, not only the terminal but it also breaks stuff like the Rust extension, however, when I tell bash to don't source this configuration files, everything works again, I don't know if its possible to make VScode use its own GPG and SSH sockets so it doesn't conflict with my forwarded sockets (I really don't know if that's the issue but it seems like it).
I can share logs but I don't notice a relevant difference:
With no GPG or SSH agent forwarding:
With GPG and SSH forwarding:
I can provide any other logs that im asked about here is my env with SSH and GPG forwarding:
Here is my env without it:
Here is the env on VSCode without it (Obviously since terminal doesnt work if I enable them)
DiegoMagdaleno commentedon Jan 12, 2021
Fixed the issue above, basically I don't know why but I was always forwarding stuff again and again, now it only does it once, I added the following line as an if condition in the scripts above:
ps -eo args= | grep -q "^socat UNIX-LISTEN:$sock";This fixed everything! If someone has a similar WSL setup to mine or similar SSH setup, this is a good solution.
ykfq commentedon Mar 16, 2021
Still exists with latest version
1.54.3VSCode build info

SSH Server

CLOSE_WAITRemote SSH

Terminal Log window

Log(Remote Server)

spoole50 commentedon May 24, 2021
Not sure if it will help anyone, but I experienced a similar problem with no luck troubleshooting. Come to find out, I had enabled a script to run every time I ssh into my server to log all terminal input and output using the Linux
scriptcommand. After disabling, vscode started working as usual.QGB commentedon Jun 3, 2021
vscode remotessh terminal "starting..."
我知道原因了,因为本机127.0.0.1无法访问,所以无法进行下一步连接。
解决办法:重启
netsh int ipv4 reset
正在重置 分段转发,完成!
正在重置 分段,完成!
正在重置 控制协议,完成!
正在重置 回显顺序请求,完成!
正在重置 全局,完成!
正在重置 接口,失败。
请求的操作需要提升(作为管理员运行)。
正在重置 任意广播地址,完成!
正在重置 多播地址,完成!
正在重置 单播地址,失败。
请求的操作需要提升(作为管理员运行)。
正在重置 邻居,失败。
请求的操作需要提升(作为管理员运行)。
正在重置 路径,失败。
请求的操作需要提升(作为管理员运行)。
正在重置 潜在,完成!
正在重置 前缀策略,完成!
正在重置 代理邻居,完成!
正在重置 路由,失败。
请求的操作需要提升(作为管理员运行)。
正在重置 站点前缀,完成!
正在重置 子接口,完成!
正在重置 唤醒模式,完成!
正在重置 解析邻居,完成!
正在重置 ,完成!
正在重置 ,完成!
正在重置 ,完成!
正在重置 ,完成!
正在重置 ,失败。
请求的操作需要提升(作为管理员运行)。
正在重置 ,完成!
正在重置 ,完成!
正在重置 ,完成!
正在重置 ,失败。
请求的操作需要提升(作为管理员运行)。
正在重置 ,完成!
正在重置 ,完成!
正在重置 ,完成!
重新启动计算机来完成此操作。
Tyriar commentedon Oct 21, 2021
I believe this is already fixed, can you see if you can reproduce in the Insiders build? Let us know if not.
teffland commentedon Oct 22, 2021
For what it's worth, I was able to fix the issue pretty simply by logging into the remote node through an ssh connection outside of vscode and then renaming
/home/<user>/.vscode-serverso that the remote server reinstalled the next time I attempted to connect.