Home Assistant Community Add-on: SSH & Web Terminal

Same for me

Hey @sebastiaan that is not an error from this add-on, but from the core add-on.
Iā€™ve just put out a release to fix the core add-on (version 8.1).

1 Like

Sorry for the stupid question, but how do I update the core add-on?

There wil be a update button when the update is available.

Thanks frenck!

Thanks to both of you :hugs:

:tada: Release v7.0.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :ambulance: Fix possible issue with sudo.conf permissions
  • :hammer: Improve Bash command prompt by adding the current directory to it

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

does anybody know why my installation doesnā€™t seem to know itā€™s hassos version?

 ~ $ hassio info
arch: armv7
channel: stable
hassos: null
homeassistant: 0.103.4
hostname: hassio
logging: info
machine: raspberrypi2
supervisor: "193"
supported_arch:
- armv7
- armhf
timezone: Europe/Berlin
/ $ hassio host info
chassis: ""
cpe: ""
deployment: ""
features:
- reboot
- shutdown
- services
- hostname
hostname: hassio
kernel: 4.4.50
operating_system: Resin OS 2.3.0+rev1

You are running ResinOS, that is really really old and outdated (before the HassOS age). I would highly recommend on upgrading/migrating to HassOS

So how to upgrade then? I thought it would upgrade automatically, but seems it doesnā€™t. Do I have to backup all my settings, install from scratch and then import my backup/snapshot? Or is there any other way?

Itā€™s a totally different base O/S so you will need to make a snapshot and Iā€™d also backup your /config folder just in case. Youā€™ll need to image an SD-Card and start from there. When it comes up, restore your snapshot.

How to use this addon to ssh to 22222 port? Sorry if this a stupid question but i am a newbie and as i read, i need to ssh to this port to change something in the config.txt fileā€¦

port 22222 ssh is a debug and doesnā€™t need this addon to work. Just follow the instructions for debug mode and upload a private key file so you can then ssh in.
https://developers.home-assistant.io/docs/en/hassio_debugging.html#hassos-based-hassio

I just upgraded to the latest version 0.104, HassOS 3.8, and Hass.io Supervisor 195 running on a Raspberry pi 3B+. When I tried to SSH from Mac terminal, I received that warning others have seen about a possible man in the middle attack. I used the ssh-keygen -R command to remove and replaced the known-host of my home assistant server, and it is working fine now. Thanks @DavidFW1960 !

My question: Is this expected behavior? Will the host key change on HassOS updates and need to be updated in my known_hosts file?

Thanks!

I had only seen it change when you use a new SD-Card. Or clean install of a new O/S to be precise.

:tada: Release v7.1.0

Full Changelog

This is a general maintenance release, which incorporates the re-branding of Home Assistant as well.

Newly added to this release is the seamless connection with the MariaDB & Mosquitto add-ons. The command-line tools for these, are automatically configured to connect to the add-ons.

The hassio command-line tool has been replaced/renamed to ha. Donā€™t worry, the old commands still work, giving you some time to get used to this all.

:hammer: Changes

  • :fireworks: Updates maintenance/license year to 2020
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades add-on base image to v7.0.0
  • :books: Update add-on documentation to use new YAML configuration format
  • :hammer: Update add-on config with new password & list features
  • :arrow_up: Upgrades Home Assistant CLI to 4.0.1
  • :hammer: Re-branding
  • :arrow_up: Upgrades ttyd to v1.6.0
  • :arrow_up: Upgrades libwebsockets to 3.2.2
  • :arrow_up: Upgrades python3 to 3.8.1-r0
  • :arrow_up: Upgrades libxml2-utils to 2.9.10-r2
  • :arrow_up: Upgrades mariadb-client to 10.4.12-r0
  • :arrow_up: Upgrades sudo to 1.8.31-r0
  • :sparkles: Add hook up with the MQTT & MySQL services
  • :ambulance: Fix incorrect version tag on ttyd
  • :ambulance: Correct MySQL cnf path

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Love your work @frenck. A question, if I mayā€¦ what is:

  • :sparkles: Add hook up with the MQTT & MySQL services

Sounds awesome but what can I do with it?

You can use the MySQL and mosquito command line tools, without configuration. If you have the MariaDB or Mosquitto addons installed, the tools default connect to those.

Trying to interface with the MariaDB addon but on startup Iā€™m getting the following:

[cont-init.d] mysql.sh: executingā€¦
[15:32:21] DEBUG: Requested API resource: http://supervisor/services/mysql
[15:32:21] DEBUG: Request method: GET
[15:32:21] DEBUG: Request data: {}
[15:32:21] DEBUG: API HTTP Response code: 400
[15:32:21] DEBUG: API Response: {ā€œresultā€: ā€œerrorā€, ā€œmessageā€: ā€œService not enabledā€}

[15:32:21] ERROR: Got unexpected response from the API: Service not enabled
[15:32:22] INFO: The above error can be ignored if you donā€™t have MariaDB installed
[cont-init.d] mysql.sh: exited 0.

HomeAssistant appears to be logging to MariaDB just fine, but I do need to attempt to repair the users table. Any thoughts?

edit: looks like the state of user table was preventing this from working.

Hi guys,

Since upgrading to 8.4 I can no longer login remotely on SSH, I get connection refused. Web UI connects fine without issue.

Anyone else facing this issue?

8.4, that sounds like the official add-on, not the community version. This topic is about the community SSH & Web Terminal add-on.