How can I solve this problem: SSH Unknown error - visual-studio-code

When I connect to remote server using VS code, I got this OUTPUT:
[12:00:38.322] Log Level: 2
[12:00:38.344] SSH Resolver called for "ssh-remote+10.101.169.215", attempt 1
[12:00:38.345] "remote.SSH.useLocalServer": false
[12:00:38.345] "remote.SSH.showLoginTerminal": false
[12:00:38.345] "remote.SSH.remotePlatform": {}
[12:00:38.346] "remote.SSH.path": undefined
[12:00:38.346] "remote.SSH.configFile": undefined
[12:00:38.346] "remote.SSH.useFlock": true
[12:00:38.346] "remote.SSH.lockfilesInTmp": false
[12:00:38.346] "remote.SSH.localServerDownload": auto
[12:00:38.346] "remote.SSH.remoteServerListenOnSocket": false
[12:00:38.347] "remote.SSH.showLoginTerminal": false
[12:00:38.347] "remote.SSH.defaultExtensions": []
[12:00:38.347] "remote.SSH.loglevel": 2
[12:00:38.347] "remote.SSH.enableDynamicForwarding": true
[12:00:38.347] "remote.SSH.enableRemoteCommand": false
[12:00:38.347] "remote.SSH.serverPickPortsFromRange": {}
[12:00:38.348] "remote.SSH.serverInstallPath": {}
[12:00:38.353] VS Code version: 1.75.0
[12:00:38.353] Remote-SSH version: remote-ssh#0.96.0
[12:00:38.353] win32 x64
[12:00:38.354] SSH Resolver called for host: 10.101.169.215
[12:00:38.354] Setting up SSH remote "10.101.169.215"
[12:00:38.360] Using commit id "e2816fe719a4026ffa1ee0189dc89bdfdbafb164" and quality "stable" for server
[12:00:38.365] Install and start server if needed
[12:00:43.867] Checking ssh with "ssh -V"
[12:00:43.895] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[12:00:43.900] Running script with connection command: ssh -T -D 50865 "10.101.169.215" bash
[12:00:43.903] Terminal shell path: C:\Windows\System32\cmd.exe
[12:00:44.121] > ssh: connect to host 10.101.169.215 port 22: Unknown error
> ]0;C:\Windows\System32\cmd.exe
[12:00:44.121] Got some output, clearing connection timeout
[12:00:44.136] > 过程试图写入的管道不存在。
[12:00:45.393] "install" terminal command done
[12:00:45.394] Install terminal quit with output: ]0;C:\Windows\System32\cmd.exe过程试图写入的管道不存在。
[12:00:45.394] Received install output: ]0;C:\Windows\System32\cmd.exe过程试图写入的管道不存在。
[12:00:45.394] Failed to parse remote port from server output
[12:00:45.396] Resolver error: Error:
at g.Create (c:\Users\nalan\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:584147)
at t.handleInstallOutput (c:\Users\nalan\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:582761)
at t.tryInstall (c:\Users\nalan\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:680758)
at async c:\Users\nalan\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:643114
at async t.withShowDetailsEvent (c:\Users\nalan\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:646432)
at async t.resolve (c:\Users\nalan\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:644164)
at async c:\Users\nalan\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:721750
[12:00:45.400] ------
I also have an window told me that:
Could not establish connection to "10.101.169.215".
TRY:
I had tried to install vscode-server manually, but no effect
I delete the file .ssh/known_hosts, nothing happened.
I think the problem maybe my OpneSSH, so I run ssh username#10.101.169.215 in
,got
"ssh: connect to host 10.101.169.215 port 22: Unknown error"
I have been searching solution about "ssh: connect to host 10.101.169.215 port 22: Unknown error", but found nothing.
What should I do to connect my remote server sucessfully ?
Any help will be appreciated.

Related

Failed to parse remote port from server output

I want to connect to jupyterhub server of my organization with vscode's Remote SSH, however it crashed with this report:
[17:48:27.180] Running script with connection command: ssh -T -D 56752 "jupyterhub.whatever.com" bash
[17:48:27.183] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[17:48:27.575] > 系统无法执行指定的程序。
> ]0;C:\WINDOWS\System32\cmd.exe
[17:48:27.576] Got some output, clearing connection timeout
[17:48:28.857] "install" terminal command done
[17:48:28.858] Install terminal quit with output: ]0;C:\WINDOWS\System32\cmd.exe
[17:48:28.858] Received install output: ]0;C:\WINDOWS\System32\cmd.exe
[17:48:28.858] Failed to parse remote port from server output
[17:48:28.859] Resolver error: Error:
at g.Create (c:\Users\k6789\.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:585222)
at t.handleInstallOutput (c:\Users\k6789\.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:583874)
at t.tryInstall (c:\Users\k6789\.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:681023)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async c:\Users\k6789\.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:643908
at async t.withShowDetailsEvent (c:\Users\k6789\.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:647224)
at async t.resolve (c:\Users\k6789\.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:644958)
at async c:\Users\k6789\.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:726917
[17:48:28.863] ------
And this is my SSH config:
Host jupyterhub.whatever.com
HostName jupyterhub.whatever.com
IdentityFile ~/.ssh/id_rsa
PreferredAuthentications publickey
User MyUserName
I think this question can't help me, so how to solve the problem?
Try deleting the content in your C:/Users/user/.ssh/known_hosts and connect against the same host.
I had a similar problem and it's looks like Visual Studio creates a new config file.
I had the same issue with VS Code. I was able to resolve it by using SSH from a terminal and running the following on the host:
rm -f .vscode-server/*.log

I'm trying to open a repo from codesandbox in vscode and I'm getting an ssh connection error

This is what I'm getting in output terminal. I have tested a few things gleaned from the web but nothing has worked so far.
Failed to connect to the remote extension host server
Log:
[15:50:13.256] Log Level: 2
[15:50:13.262] remote-ssh#0.70.0[15:50:13.262] win32 x64
[15:50:13.294] SSH Resolver called for "ssh-remote+rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb", attempt 1
[15:50:13.294] "remote.SSH.useLocalServer": false
[15:50:13.295] "remote.SSH.showLoginTerminal": true
[15:50:13.295] "remote.SSH.remotePlatform": {"rohithreddy20.kimnganle.master.csb":"linux","rohithreddy20.swoop.draft---cold-currying.csb":"linux"}
[15:50:13.296] "remote.SSH.path": undefined
[15:50:13.296] "remote.SSH.configFile": undefined[15:50:13.296] "remote.SSH.useFlock": true
[15:50:13.297] "remote.SSH.lockfilesInTmp": false
[15:50:13.297] "remote.SSH.localServerDownload": auto
[15:50:13.297] "remote.SSH.remoteServerListenOnSocket": true
[15:50:13.297] "remote.SSH.showLoginTerminal": true
[15:50:13.298] "remote.SSH.defaultExtensions": ["gitpod.gitpod-remote-ssh"][15:50:13.298] "remote.SSH.loglevel": 2
[15:50:13.298] "remote.SSH.serverPickPortsFromRange": {}[15:50:13.299] "remote.SSH.enableDynamicForwarding": true
[15:50:13.299] "remote.SSH.serverInstallPath": {}
[15:50:13.300] SSH Resolver called for host: rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb[15:50:13.301] Setting up SSH remote "rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb"[15:50:13.343] Using commit id "d045a5eda657f4d7b676dedbfa7aab8207f8a075" and quality "stable" for server
[15:50:13.350] Install and start server if needed
[15:50:15.585] Checking ssh with "ssh -V"
[15:50:15.631] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
[15:50:15.640] Running script with connection command: ssh -T -D 63679 "rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb" bash
[15:50:15.644] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:50:21.365] > ssh: connect to host 167.235.6.182 port 19550: Connection refused
The process tried to write to a nonexistent pipe.]0;
C:\WINDOWS\System32\cmd.exe
[15:50:21.366] Got some output, clearing connection timeout
[15:50:22.666] "install" terminal command done
[15:50:22.667] Install terminal quit with output: ]0;C:\WINDOWS\System32\cmd.exe
[15:50:22.667] Received install output: ]0;C:\WINDOWS\System32\cmd.exe
[15:50:22.668] Failed to parse remote port from server output
[15:50:22.669] Resolver error: Error:at h.Create (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430425)at t.handleInstallOutput (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:429068)at t.tryInstall (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:524212)at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487216at async t.withShowDetailsEvent (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)at async t.resolve (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)at async c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[15:50:22.679] ------
[15:50:22.735] ------
[15:50:22.735] SSH Resolver called for "ssh-remote+rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb", attempt 2, (Reconnection)
[15:50:22.736] SSH Resolver called for host: rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb
[15:50:22.737] Setting up SSH remote "rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb"
[15:50:22.742] Using commit id "d045a5eda657f4d7b676dedbfa7aab8207f8a075" and quality "stable" for server[15:50:22.752] Install and start server if needed
[15:50:44.751] getPlatformForHost was canceled
[15:50:44.752] Resolver error: Error: Connecting was canceledat h.Canceled (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430621)at c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487128at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async t.withShowDetailsEvent (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)at async t.resolve (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)at async c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[15:50:44.756] ------
[15:50:44.763] ------
[15:50:44.763] SSH Resolver called for "ssh-remote+rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb", attempt 3, (Reconnection)
[15:50:44.764] SSH Resolver called for host: rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb
[15:50:44.764] Setting up SSH remote "rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb"
[15:50:44.767] Using commit id "d045a5eda657f4d7b676dedbfa7aab8207f8a075" and quality "stable" for server
[15:50:44.770] Install and start server if needed
[15:51:27.449] getPlatformForHost was canceled
[15:51:27.450] Resolver error: Error: Connecting was canceledat h.Canceled (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430621)at c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487128at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async t.withShowDetailsEvent (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)at async t.resolve (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)at async c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[15:51:27.456] ------
[15:51:27.485] ------
[15:51:27.485] SSH Resolver called for "ssh-remote+rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb", attempt 4, (Reconnection)
[15:51:27.485] SSH Resolver called for host: rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb
[15:51:27.485] Setting up SSH remote "rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb"
[15:51:27.489] Using commit id "d045a5eda657f4d7b676dedbfa7aab8207f8a075" and quality "stable" for server[15:51:27.493] Install and start server if needed
[15:51:29.043] getPlatformForHost was canceled
[15:51:29.044] Resolver error: Error: Connecting was canceledat h.Canceled (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430621)at c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487128at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async t.withShowDetailsEvent (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)at async t.resolve (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)at async c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[15:51:29.048] ------
[15:51:29.053] ------
[15:51:29.054] SSH Resolver called for "ssh-remote+rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb", attempt 5, (Reconnection)
[15:51:29.054] SSH Resolver called for host: rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb
[15:51:29.054] Setting up SSH remote "rohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb"
[15:51:29.057] Using commit id "d045a5eda657f4d7b676dedbfa7aab8207f8a075" and quality "stable" for server
[15:51:29.060] Install and start server if needed
[15:51:29.612] getPlatformForHost was canceled
[15:51:29.613] Resolver error: Error: Connecting was canceledat h.Canceled (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430621)at c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487128at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async t.withShowDetailsEvent (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)at async t.resolve (c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)at async c:\Users\rohit.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[15:51:29.617] ------
ERR [attempt 1] resolveAuthority(ssh-remote) returned an error after 9444 ms CodeExpectedErrorat I._resolveAuthority (workbench.desktop.main.js:3224:7184)at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async I._resolveAuthorityInitial (workbench.desktop.main.js:3224:7788)at async I._scanAndHandleExtensions (workbench.desktop.main.js:3224:9623)at async I._initialize (workbench.desktop.main.js:3222:24421)
ERR ENOPRO: No file system provider found for resource 'vscode-remote://ssh-remote%2Brohithreddy20.swoop.csb-e5lqzo---draft---awesome-glade.csb/project/swoop'at u.withProvider (vscode-file://vscode-app/c:/Users/rohit/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:608:14059)at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async u.doWatch (vscode-file://vscode-app/c:/Users/rohit/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:608:27826)at async vscode-file://vscode-app/c:/Users/rohit/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:608:27692`
I tried for hours to solve this problem but couldn't do it
Could someone help me on the reason for the problem or on a possible solution?

vs code not support win11? bash: powershell: command not found

Can't connect to my college server after upgrading my pc to win11.
It's strange because I can use vs-code connect to it on my Macbook but not on my window desktop anymore. Not sure why it only happening on my desktop.
[00:37:42.740] > bash: powershell: command not found
[00:37:44.041] "install" terminal command done
[00:37:44.042] Install terminal quit with output: bash: powershell: command not found
[00:37:44.042] Received install output: bash: powershell: command not found
[00:37:44.042] Failed to parse remote port from server output
[00:37:44.042] Resolver error: Error:
at g.Create (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:585222)
at t.handleInstallOutput (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:583874)
at t.tryInstall (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:681023)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:643908
at async t.withShowDetailsEvent (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:647224)
at async t.resolve (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:644958)
at async c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:726917
[00:37:44.045] ------
[00:37:44.109] ------
[00:37:44.109] SSH Resolver called for "ssh-remote+access.engr.oregonstate.edu", attempt 2, (Reconnection)
[00:37:44.110] SSH Resolver called for host: access.engr.oregonstate.edu
[00:37:44.110] Setting up SSH remote "access.engr.oregonstate.edu"
[00:37:44.111] Using commit id "d045a5eda657f4d7b676dedbfa7aab8207f8a075" and quality "stable" for server
[00:37:44.113] Install and start server if needed
[00:37:48.982] getPlatformForHost was canceled
[00:37:48.982] Resolver error: Error: Connecting was canceled
at g.Canceled (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:585418)
at c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:643820
at async t.withShowDetailsEvent (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:647224)
at async t.resolve (c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:644958)
at async c:\Users\kk3kk.vscode\extensions\ms-vscode-remote.remote-ssh-0.90.1\out\extension.js:1:726917
[00:37:48.983] ------
[00:37:48.984] ------
[00:37:48.984] SSH Resolver called for "ssh-remote+access.engr.oregonstate.edu", attempt 3, (Reconnection)
[00:37:48.985] SSH Resolver called for host: access.engr.oregonstate.edu
[00:37:48.985] Setting up SSH remote "access.engr.oregonstate.edu"
[00:37:48.986] Using commit id "d045a5eda657f4d7b676dedbfa7aab8207f8a075" and quality "stable" for server
[00:37:48.988] Install and start server if needed

Can not get environment variables "ELECTRON_GET_USE_PROXY" in integrated terminal of vscode. Is anyone else has met this problem?

I am using electron-quick-start project to learn electron, and when I open this project in vscode and execute yarn install, some exception has been throwed out:
Exit code: 1
Command: node install.js
Arguments:
Directory: C:\Users\user_home\Downloads\electron-quick-start-master\node_modules\electron
Output:
RequestError: getaddrinfo ENOTFOUND npm.taobao.org
at ClientRequest.<anonymous> (C:\Users\user_home\Downloads\electron-quick-start-master\node_modules\got\source\request-as-event-emitter.js:178:14)
at Object.onceWrapper (events.js:418:26)
at ClientRequest.emit (events.js:323:22)
at ClientRequest.origin.emit (C:\Users\user_home\Downloads\electron-quick-start-master\node_modules\#szmarczak\http-timer\source\index.js:37:11)
at TLSSocket.socketErrorListener (_http_client.js:426:9)
at TLSSocket.emit (events.js:311:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
I have set the system environment variables following electron's official proxy setting guide:
ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
ELECTRON_GET_USE_PROXY=true
by debuging the node_modules/electron/install.js, I found that the process.env.ELECTRON_GET_USE_PROXY is not value I have set but undefined. but when I debug this script in powershell opened from the explorer, process.env.ELECTRON_GET_USE_PROXY print out the right value I have set.

Unable to establish connection to remote: spawn ENOTDIR

I am using VS code Remote-SSH to connect to the remote machines to modify the files. Currently upon trying to connect the Remote-SSH: Connect to host. I get the error message," Could not establish connection to "": spawn ENOTDIR.
The full error log is as follows:
[09:29:43.567] Log Level: 2
[09:29:43.568] remote-ssh#0.65.1
[09:29:43.568] darwin arm64
[09:29:43.569] SSH Resolver called for "ssh-remote+xps", attempt 1
[09:29:43.569] "remote.SSH.useLocalServer": true
[09:29:43.569] "remote.SSH.sshPath": undefined
[09:29:43.569] "remote.SSH.sshConfigurationFile": undefined
[09:29:43.569] "remote.SSH.useFlock": true
[09:29:43.569] "remote.SSH.lockfilesInTmp": false
[09:29:43.569] "remote.SSH.localServerDownload": auto
[09:29:43.569] "remote.SSH.remoteServerListenOnSocket": false
[09:29:43.570] "remote.SSH.showLoginTerminal": false
[09:29:43.570] "remote.SSH.defaultExtensions": []
[09:29:43.570] SSH Resolver called for host: xps
[09:29:43.570] Setting up SSH remote "xps"
[09:29:43.571] Acquiring local install lock: /var/folders/jf/rk7bz0g157x7yd5q_f726zyr0000gn/T/vscode-remote-ssh-xps-install.lock
[09:29:43.592] Looking for existing server data file at /Users/taramishra/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-xps-f30a9b73e8ffc278e71575118b6bf568f04587c8-0.65.1/data.json
[09:29:43.592] Using commit id "f30a9b73e8ffc278e71575118b6bf568f04587c8" and quality "stable" for server
[09:29:43.594] Install and start server if needed
[09:29:43.595] Checking ssh with "ssh -V"
[09:29:43.596] Finding installed ssh failed: spawn ENOTDIR
[09:29:43.599] Resolver error: Error: spawn ENOTDIR
at ChildProcess.spawn (internal/child_process.js:407:11)
at Object.spawn (child_process.js:557:9)
at /Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:141985
at new Promise (<anonymous>)
at k (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:141906)
at I (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:141857)
at /Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:145959
at _ (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:146024)
at C (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:141636)
at Object.t.getSshCommandPath (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:144744)
at Function.create (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:262426)
at async Object.t.tryInstallWithLocalServer (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:387852)
at async /Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:293749
at async Object.t.withShowDetailsEvent (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:407055)
at async /Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:387177
at async N (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:383945)
at async Object.t.resolveWithLocalServer (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:386804)
at async Object.t.resolve (/Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:1:297790)
at async /Users/taramishra/.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.1/out/extension.js:127:110485
[09:29:43.601] ------
I have tried to reinstall the Remote-Development packages and also cleared up the .vscode-server files in the remote. They do not seem to help.
Any idea how I can resolve this issue?
Coincidentally, I had this problem with my VSCode just today as well! For me, it just stopped working today all of a sudden (may have something to do with the latest VScode update). The problem is that VSCode can no longer find your ssh program, which it was previously able to do.
Go to your Remote-SSH preferences (cmd + , and search for remote-ssh).
Find the field labeled Remote.SSH: Path. Right now it's probably blank for you because VSCode used to find the executable by itself.
Input the absolute path to your ssh executable. If you are unsure of the path, you can run which ssh in your terminal and copy the path it prints out.
Save your settings, and retry the ssh. Worked for me!