Home Assistant Community Add-on: SSH & Web Terminal

Really basic question, I’m sure, but does anyone know (or can anyone tell me) how to copy text using the ZSH shell? I’ve generated an SSH RSA key but can’t figure out for the life of me how to copy the public key. I managed it once by frantic half random keyboard bashing but there has to be an easier way? Thanks!

Hold the modifier key while selecting (option on mac). alt/option/shift/control something like that. You’ll notice the selection becomes grey while selecting.

1 Like

:tada: Release v6.2.1

Full Changelog

This release fixes a bug with the Web Terminal not being able to start correctly.
The bug was introduced in v6.2.0.

:hammer: Changes

  • :arrow_down: Downgrades ttyd to 1.5.0

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

I have the same issue, i cannot select on mac on the web terminal :frowning: , when hold click and drag the selection is yellow, but if I release the click the selection is missing.
i have tried to hold option or command or control or shift and the result is the same :frowning:

the only option to copy only a “word” is right click over the word and select copy, but this is not useful for copy a “phrase”

do you know why?

mmmm i trying to set upp my ssh to hassio, in the config i set a password. then going to terminal, it ask to save fingerprint write yes. it asking for a password, i write it but i get Permission denied any ides?

:tada: Release v6.3.0

Full Changelog

This release adds the ability to execute shell commands from Home Assistant using a service call.
See the add-on manual for an example.

Furthermore, everything has been upgraded to the latest and greatest.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v4.0.3
  • :arrow_up: Upgrades mariadb-client to 10.3.17-r0
  • :arrow_up: Upgrades Hassio CLI to 2.3.0
  • :sparkles: Adds remote command execution service
  • :shirt: Fixes shellcheck linter warnings

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

Great job, thnx

:tada: Release v6.3.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates yamllint to v1.17.0 (#92)
  • :arrow_up: Upgrades nginx to 1.16.1-r0
  • :arrow_up: Upgrades Hassio CLI to v3.0.0

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

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades Hassio CLI to v3.1.0

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

:tada: Release v6.3.3

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v4.1.1
  • :ambulance: Fixes path handling for SSL certificates
  • :hammer: Updates HA Auth URL in NGinx LUA script
  • :hammer: Use Hass.io DNS as NGinx resolver

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

Question on rsync usage. Is it possible to use it in both ways when add-on is set to not use root as login?
I using rsync add-on in vscode and the command to sync local to remote is rejected with

rsync: mkstemp "/root/config/scripts/.test.yaml.XXXXXX" failed: Permission denied (13)

It seems config file are restricted to root user only.

Nope, that is not possible

Thank you for the quick answer.
Any suggestion or best practices to be able to push config files update without activating root in the add-on?

Only way I can think about is, doing it in reverse. Execute a remote command in the add-on, triggering the rsync.

Hi
I’m trying to acces the “$ sudo hcitool lescan” command in the web terminal, but get “zsh: command not found: $”

Any suggestions on what i’m missing :thinking:

The dollar sign ($) in the command:

$ sudo hcitool lescan

indicates that the command is entered as a normal (non-root) user. In other words, the actual command to be typed is this:

sudo hcitool lescan

without the “$”, because that would already be there in a standard shell prompt.

See this for a more detailed explanation.

Thanks for the answer, that makes sense.
So I guess I will have to login to a user in the web terminal or somethig to be able to use “sudo hcitool lescan”?
How do I go from here?
terminal

Someone else will have to chime in here as I’m not familiar with this addon’s capability. The one thing I was able to test for you is that it seems that hcitool is not installed by default, so you’ll have to figure out how to install it first.

Sorry that I’m not much of a help for you.

You can’t SUDO ANYTHING in hass.io

You can install packages in the container via the web terminal addon - config option…

:tada: Release v6.4.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v5.0.1
  • :fire: Removes secrets support, now natively supported by Hassio
  • :arrow_up: Upgrades openssl to 1.1.1d-r0
  • :arrow_up: Updates yamllint to v1.18.0 (#99)
  • :books:Remove iframe reference due to ingress (#100)
  • :arrow_up: Upgrades python3 to 3.7.5-r1
  • :arrow_up: Upgrades mariadb-client to 10.3.18-r0
  • :arrow_up: Upgrades openssh to 8.1_p1-r0
  • :arrow_up: Upgrades sqlite to 3.28.0-r1

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