vscode-remote-release
vscode-remote-release copied to clipboard
[Remote-SSH Bug]: Always have to Kill VS Code Server on Host multiple times to make it possible to connect
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.useLocalServer
setting
Connect Locally
It connects successfully
->
I have to Remote-SSH: Kill VS Code Server on Host... multiple times for my remote-ssh to connect. I use my laptop and my desktop for development and I have to remove it on both machines before I am able to connect again. I am using Stanford's Myth machines to do my development and it has been a huge annoyance trying to do any remote development on my machine. Are there any solutions that could be provided for this issue?
I am able to use regular terminal to connect just fine but Visual Studio code seems to crap out very fast.
Expected Behavior
Should just connect freely without me having to VS Code server on host everytime.
Steps To Reproduce
No response
Remote-SSH Log
Remote-SSH Log
[18:51:23.203] Install and start server if needed
[18:51:23.205] Checking ssh with "C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe -V"
[18:51:23.207] Got error from ssh: spawn C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[18:51:23.207] Checking ssh with "C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\bin\ssh.exe -V"
[18:51:23.208] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\bin\ssh.exe ENOENT
[18:51:23.208] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[18:51:23.208] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[18:51:23.208] Checking ssh with "C:\Windows\ssh.exe -V"
[18:51:23.209] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[18:51:23.209] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[18:51:23.210] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[18:51:23.210] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[18:51:23.211] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[18:51:23.211] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[18:51:23.231] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
[18:51:23.233] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 61514 "myth.stanford.edu" sh
[18:51:23.234] Generated SSH command: 'type "C:\Users\zarif\AppData\Local\Temp\vscode-linux-multi-line-command-myth.stanford.edu-312500617.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 61514 "myth.stanford.edu" sh'
[18:51:23.234] Using connect timeout of 17 seconds
[18:51:23.234] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[18:51:23.756] > ([email protected]) Password:]0;C:\WINDOWS\System32\cmd.exe
[18:51:23.756] Got some output, clearing connection timeout
[18:51:23.757] Showing password prompt
[18:51:30.283] Got password response
[18:51:30.283] "install" wrote data to terminal: "*************"
[18:51:30.319] >
[18:51:31.008] > 0f310380e025: running
> Script executing under PID: 1179047
[18:51:31.024] > Installing to /afs/.ir/users/z/a/zarif98/.vscode-server...
> 0f310380e025%%1%%
> Downloading with wget
> wget is from busybox: no
> Program 'wget' appears to support flag '--no-config'
[18:51:31.672] > Download complete
> 0f310380e025%%2%%
[18:51:31.688] > tar --version: tar (GNU tar) 1.30
> Copyright (C) 2017 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.Written by John Gilmore and Jay Fenlason.
>
[18:51:32.574] > code 1.94.2 (commit 384ff7382de624fb94dbaf6da11977bba1ecd427)
> Starting VS Code CLI...
> printenv:
> LANGUAGE=en_US:
> USER=zarif98
> SSH_CLIENT=76.14.121.97 61515 22
> XDG_SESSION_TYPE=tty
> TEMPDIR=/tmp/user/462369
> SHLVL=0
> HOME=/afs/.ir/users/z/a/zarif98
> OLDPWD=/afs/.ir/users/z/a/zarif98/.vscode-server
> TMPDIR=/tmp/user/462369
> LOGNAME=zarif98
> TEMP=/tmp/user/462369
> _=/usr/bin/sh
> XDG_SESSION_CLASS=user
> XDG_SESSION_ID=7806
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> s:/usr/local/games:/snap/bin
> XDG_RUNTIME_DIR=/run/user/462369
> LANG=en_US.UTF-8
> TMP=/tmp/user/462369
> SHELL=/bin/bash
> KRB5CCNAME=FILE:/tmp/krb5cc_462369_qBiGSn
> PWD=/afs/.ir.stanford.edu/users/z/a/zarif98
> SSH_CONNECTION=76.14.121.97 61515 171.64.15.30 22
> Spawned remote CLI: 1179101
> cat: /afs/.ir/users/z/a/zarif98/.vscode-server/.cli.384ff7382de624fb94dbaf6da119
> 977bba1ecd427.log: No such file or directory
> Waiting for server log...
[18:51:32.589] >
[18:51:32.604] > 0f310380e025: start
> listeningOn==127.0.0.1:35757==
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/462369==
> platform==linux==
> unpackResult==success==
> didLocalDownload==0==
> downloadTime==653==
> installTime==887==
> serverStartTime==34==
> execServerToken==111a1111-a1aa-1aa1-1a11-a1aa1a11a111==
> platformDownloadPath==cli-alpine-x64==
> 0f310380e025: end
[18:51:32.604] Received install output:
listeningOn==127.0.0.1:35757==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/462369==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==653==
installTime==887==
serverStartTime==34==
execServerToken==111a1111-a1aa-1aa1-1a11-a1aa1a11a111==
platformDownloadPath==cli-alpine-x64==
[18:51:32.604] Remote server is listening on port 35757
[18:51:32.604] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":35757},"osReleaseId":"ubuntu","arch":"x86_64","tmpDir":"/run/user/462369","platform":"linux","execServerToken":"111a1111-a1aa-1aa1-1a11-a1aa1a11a111"},"downloadTime":653,"installTime":887,"serverStartTime":34,"installUnpackCode":"success"}
[18:51:32.607] Starting forwarding server. local port 61520 -> socksPort 61514 -> remotePort 35757
[18:51:32.607] Forwarding server listening on port 61520
[18:51:32.608] Waiting for ssh tunnel to be ready
[18:51:32.608] [Forwarding server port 61520] Got connection 0
[18:51:32.609] Tunneled port 35757 to local port 61520
[18:51:32.609] Resolved "ssh-remote+myth.stanford.edu" to "port 61520"
[18:51:32.615] Initizing new exec server for ssh-remote+myth.stanford.edu
[18:51:32.615] Resolving exec server at port 61520
[18:51:32.617] [Forwarding server port 61520] Got connection 1
[18:51:32.636] >
[18:51:32.687] Exec server for ssh-remote+myth.stanford.edu created and cached
[18:51:32.691] ------
Anything else?
No response