How to connect local VSCode instance to VS Code HA Add-on via ssh?

That is/was your problem. The configuration of the Terminal & SSH add-on has completely changed, look at the post slightly above yours for the updated syntax.

Is this still working for anyone?

At some point last week I started getting this error on VSCode server:

/root/.vscode-server/bin/e54c774e0add60467559eb0d1e229c6452cf8447/bin/code-server: line 12: /root/.vscode-server/bin/e54c774e0add60467559eb0d1e229c6452cf8447/node: not found

@sammyke007 Working fine for me with the mentioned changes to the config of Advanced SSH & Web Terminal. You might want to try to connect via ssh and remove the “/root/.vscode-server/” folder.

1 Like

Running latest HA and ‘Advanced SSH Terminal’ add-on and cannot seem to get this to work.

In terms of vscode, I have: Version: 1.99.3 (Universal), and I also found this.

My config:

ssh:
  username: hassio
  password: ""
  authorized_keys:
    - >-
      ssh-rsa
  sftp: false
  compatibility_mode: false
  allow_agent_forwarding: false
  allow_remote_port_forwarding: true
  allow_tcp_forwarding: true
zsh: true
share_sessions: false
packages:
  - grep
init_commands:
  - cat /config/aliases >> ~/.zshrc

Tried adding package procps and it doesn’t work. Tried adding apks for procps and it doesn’t work either.

In VSCode I always get message: Error: ServerFailedToStart (The VS Code Server failed to start).

In detail log, I also found error message: Error relocating /data/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/node: fcntl64: symbol not found

Any ideas?

Thanks in advance.

I just tested mine and it works fine with the same config as you under the ssh: key. None of the other stuff starting with zsh is configured or needed for vscode to work for me.

Vscode version is 1.97.2

@mterry63 And can you please share what packages do you have installed?

Thanks in advance.

I have spent some time reading through the thread and finding the correct settings. Here is what works for me with latest Visual Studio. Just install official SSH add-on and change the setting like this:

apks:
  - procps
server:
  tcp_forwarding: true
1 Like

Thanks for that. I’m going to test reducing the packages as have propcps and some others.

Since we’re in the same boat, have you been able to get the Home Assistant VSCode extension to work?

I tried every iteration of the above mentioned solution … but to no avail. I am running a fresh installation of HAOS. Everything is up to date, including VSCode and the Remote SSH add-on. Can somebody confirm this?

What are we confirming, exactly? It’s still working fine for me.

@Markmark - I’m on a Mac so YMMV, but here’s the configuration I have working. Just to confirm, you should be able to ssh [email protected] first to verify the host is captured in your local config, authorized keys work, etc. Never hurts to ask the most simple questions…

Hope this helps.

Visual Studio Code
Screenshot 2025-10-10 at 10.42.19 AM

Version: 1.105.0 (Universal)
Commit: 03c265b1adee71ac88f833e065f7bb956b60550a
Date: 2025-10-08T14:09:35.891Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0