添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Goal: Connect my local vscode instance to the HA vscode add-on using ssh.

Setup: I’m currently running HA as a virtual appliance (x86_64/UEFI) via the qcow2 image on my unraid server.

What i did so far:

  • HA VM: Install vscode add-on
  • HA VM: Install official ssh add-on
  • Local PC: Install vscode and add the ssh extension
  • Local PC: Vscode add ssh connection:

    This is how i added the connection: ssh [email protected]

  • When i try to connect i get the following error:

    Could someone layout how to get this working?

    Thanks

    It‘s still under development, to make use of the addon you need to add the following link to your repository list.

    https://addons.community/edge

  • VS Code Remote Add-on in HA Supervisor
  • SSH & Web Terminal Add-on in HA Supervisor (not sure if I event need this)
  • VS Code Remote extensions in VS Code
  • Any Network port mappings that your had to setup
  • I’m trying to dev on my HA server remotely

    HA is tied to nabu casa

    And I also have the network my HA is on mapped to dynamic DNS.

    So I typically connect with the following settings.

    URL: hassio.domain.com
    Port: 22
    Username: root
    Password: password

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

    I’m a little lost between

    Supervisor Add-on Settings + VS Code Remote Settings + Home Network Settings.

    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.