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

There is the VS Code add-on and the VS Code Remote add-on which is currently still in development.
To do VS Code SSH remote dev the remote add-on is needed.

  • VS Code Remote Add-on in HA Supervisor

Sure, actually all you need is to to do is add your ssh public key to the extensions config section (authorised_keys) and create a port forwarding in your router for eg. port 2222.

  • SSH & Web Terminal Add-on in HA Supervisor (not sure if I event need this)

It’s not needed, the VS Code remote add-on is handling this for you.

  • VS Code Remote extensions in VS Code

I haven’t set it up myself yet, but be aware that you want to do this on the code server you are connecting to (the vscode remte add-on). It’s probably pre configured but im not sure.
If you need to set it up this should guide you through the process.

Don’t forget, that the code server it self is running on the same network / docker network as Home-assistant and that it can connect locally even though you connect to the remote add-on remotely.

  • Any Network port mappings that your had to setup

Port forward the ssh port you configured in the vs code remote add-on. Make sure to use ssh key authentication only.

This works for every SSH Dev IDE I have EXCEPT VS Code

This is not natively supported on Hassos, therefor you need to use the remote add-on created by Frank.

Have a look at this for a better understanding of the ssh remote dev solution by vscode.

I hope this helps.
Br Jaddel