2021年3月26日星期五

Unable to ssh connect to remote server with Visual Studio Code

I need to connect to a remote (linux) server using ssh from my Mac, and everything works if I just connect from my terminal. And just a few days ago, it also worked well on VSCode. Now, when trying to connect to host it's no longer working.

Here is part of the error I get:

  [21:53:07.617] Server installation process already in progress - waiting and retrying  [21:53:07.617] Terminating local server  [21:53:07.626] Local server exit: 15  [21:53:08.625] askpass server listening on /var/folders/hb/t9sgxkyx5s968b6t72m3pvy80000gn/T/vscode-ssh-askpass-c1d7d2145f0e6dc4b41754ae3e431b33fe8de06f.sock  [21:53:08.626] Spawning local server with {"ipcHandlePath":"/var/folders/hb/t9sgxkyx5s968b6t72m3pvy80000gn/T/vscode-ssh-askpass-789b3b108c6539293489795eb4ecb70889b27ad9.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","50070","-o","ConnectTimeout=15","cmslpc-sl7.fnal.gov"],"dataFilePath":"/Users/alanherrera/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-cmslpc-sl7.fnal.gov-2b9aebd5354a3629c3aba0a5f5df49f43d6689f8-0.65.1/data.json"}  [21:53:08.626] Local server env: {"DISPLAY":"/private/tmp/com.apple.launchd.7NCaGKAW9L/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)","VSCODE_SSH_ASKPASS_MAIN":"/Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/hb/t9sgxkyx5s968b6t72m3pvy80000gn/T/vscode-ssh-askpass-c1d7d2145f0e6dc4b41754ae3e431b33fe8de06f.sock"}  [21:53:08.628] Spawned 1899  [21:53:08.732] > local-server> Spawned ssh: 1905  [21:53:08.735] stderr> OpenSSH_8.1p1, LibreSSL 2.7.3  [21:53:09.071] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:iiX+ktPwxsX9PZ+Tn/ENLsxnjNEWgfb6LCoy85LwFa8  [21:53:09.072] stderr> Warning: Permanently added 'cmslpc-sl7.fnal.gov,131.225.204.176' (ECDSA) to the list of known hosts.  [21:53:09.455] stderr> Authenticated to cmslpc-sl7.fnal.gov ([131.225.204.176]:22).  [21:53:09.883] > ready: cc00543ca431  [21:53:09.935] > Linux 3.10.0-1160.6.1.el7.x86_64 #1 SMP Tue Nov 10 08:19:23 CST 2020  [21:53:09.936] Platform: linux  [21:53:10.057] > cc00543ca431: running  [21:53:10.082] > Acquiring lock on /uscms/home/aherrera/.vscode-server/bin/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/vscode-remote-lock.aherrera.2b9aebd5354a3629c3aba0a5f5df49f43d6689f8  > Installation already in progress...  > If you continue to see this message, you can try toggling the remote.SSH.useFlock setting  > cc00543ca431: start  > exitCode==24==  > listeningOn====  > osReleaseId==scientific==  > arch==x86_64==  > tmpDir==/run/user/56258==  > platform==linux==  > unpackResult====  > didLocalDownload==0==  > downloadTime====  > installTime====  > extInstallTime====  > serverStartTime====  > cc00543ca431: end  [21:53:10.083] Received install output:   exitCode==24==  listeningOn====  osReleaseId==scientific==  arch==x86_64==  tmpDir==/run/user/56258==  platform==linux==  unpackResult====  didLocalDownload==0==  downloadTime====  installTime====  extInstallTime====  serverStartTime====    [21:53:10.083] Server installation process already in progress - waiting and retrying  [21:53:10.083] Terminating local server  [21:53:10.093] Local server exit: 15  [21:53:11.094] Resolver error: Error:       at Function.Create (/Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:64328)      at /Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:294678      at async Object.t.withShowDetailsEvent (/Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:407055)      at async /Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:387177      at async N (/Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:383945)      at async Object.t.resolveWithLocalServer (/Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:386804)      at async Object.t.resolve (/Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:297790)      at async /Users/alanherrera/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:127:110485  [21:53:11.099] ------  

Thanks for any help.

https://stackoverflow.com/questions/66827402/unable-to-ssh-connect-to-remote-server-with-visual-studio-code March 27, 2021 at 10:08AM

没有评论:

发表评论