I want to access my servers via SSH in VSCodium. Let’s setup a plain Debian 11 host and Home Assistant 10.
VSCodium
-
Install VSCodium extension: jeanp413.open-remote-ssh
-
Configure the extension per the instructions.
-
In file
~/.vscode-oss/argv.json
add the following code to the bottom of the file and save
- reload VSCodium
-
Remote Hosts
The basic gist is:
- Add SSH public key
- SSH config: Allow TCP forwarding
- Install dependencies (e.g. curl)
Home Assistant
-
Install Home Assistant Community Add-on: Advanced SSH & Web Terminal Note the Official add-on Terminal & SSH does not support the port forwarding.
-
Configure Advanced SSH & Web Terminal N.B. This is setup with root as the SSH user. I tried creating another user but the new user couldn’t do what I needed right away, even when adding them to the root group.
-
If Home Assistant is not a host in
~/.ssh/config
then add it: -
Connect to Home Assistant FTW
Debian Server
-
Copy your public key to the Debian Server
-
Test that you can authenticate to Debian Server Using SSH Keys
-
More SSH configuration
-
Install sudo
-
Install curl on Debian Server
-
Connect to Debian Server FTW