Home Assistant Community Add-on: SSH & Web Terminal

Hi,

I’m trying to use the cron within this addon via the /etc/periodic folder. But it doesn’t seem to work.
And I can’t find logs as well.

Someone an Idea?

I’ve problem about starting ssh & terminal, which it could be used before.
I check system log and it shows

19-01-18 08:58:41 ERROR (SyncWorker_16) [hassio.docker] Can’t create container from addon_a0d7b954_ssh: 409 Client Error: Conflict (“Conflict. The container name “/addon_a0d7b954_ssh” is already in use by container “0366c7854616b4a54f1f7896b8335bdd1d0179c41f3f122c5a6a15da5fc721db”. You have to remove (or rename) that container to be able to reuse that name.”)

How can I completely remove the container file that indicated on the error, so the add on can be use flawlessly

:tada: Release v3.7.1

Full Changelog

Changed

  • Fixes spelling error in Dockerfile
  • Updates yamllint to v1.14.0 (#55)
  • Updates homeassistant_cli to v0.4.4 (#56)
  • Upgrades mariadb-client to 10.2.19-r1
  • Upgrades wget to 1.20.1-r0

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

Have this error on Hassio when I try to start the add-on:

19-02-04 17:33:19 INFO (SyncWorker_7) [hassio.docker.interface] Clean hassioaddons/ssh-armhf Docker application
19-02-04 17:33:19 ERROR (SyncWorker_7) [hassio.docker] Can’t start addon_a0d7b954_ssh: 500 Server Error: Internal Server Error (“linux runtime spec devices: error gathering device information while adding custom device “/dev/ttyUSB0”: no such file or directory”)

All I have done is disconnect my RFLink and restart Hassio. Do I need my RFLink to start this add-on ?

OK I uninstalled the add-on and installed it again. Works now

:tada: Release v3.7.2

Full Changelog

Changed

  • Updates homeassistant_cli to v0.5.0 (#59)
  • Updates yamllint to v1.15.0 (#60)

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

Pardon my ignorance of such matters, but could someone guide me as to how you manage scrolling the contents of the SSH & Web terminal window?

:tada: Release v3.7.3

Full Changelog

Changed

  • Updates homeassistant_cli to v0.6.0 (#61)
  • Upgrades add-on base image to 2.3.2
  • Upgrades libressl to 2.7.5-r0
  • Upgrades hassio-cli to v2.1.0

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

Hi,

I installed this addon earlier on a fully up to date version of Hassio running on a rapsberry 3B and all seemed to be OK after trying to fix stuff myself but I am now getting this -
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing…
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing…
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing…
WARNING: Logging in with root use is security wise, a bad idea!
WARNING: Logging in with a SSH password is security wise, a bad idea!
WARNING: Please, consider using a public/private key pair
INFO: Password is NOT in the Have I Been Pwned database! Nice!
INFO: Password is NOT in the Have I Been Pwned database! Nice!
FATAL: The configured certfile is not found
[cont-init.d] 10-requirements.sh: exited 1.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 99-message.sh: executing…

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when
starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.

Can anyone please shed any light on the problem.

Thanks

It would appear that the addon can’t find the certfile. Do you have a file in /ssl that matches the name under the certfile parameter in the addon config?

1 Like

I just checked, it appears to have nothing there.

How do I fix this? Many thanks for your help

You either need a cert for ssl/https (recommended) or set ssl to false in the addon config. If you want to move forward with ssl/https you can use the Duck DNS or Let’s Encrypt addons to generate a free certificate automatically or you can purchase one.

:tada: Release v4.0.0

Full Changelog

Major upgrade!
Upgrades all parts onto our new base images (based on Alpine 3.9.2), adds ARMv7 support :tada:

Changed

  • Removal of legacy tags from build
  • Upgrades add-on base image to 3.0.0
  • Upgrades Docker to 18.09.1-r0
  • Upgrades libffi to 3.2.1-r6
  • Upgrades Python to 3.6.8-r1
  • Upgrades bluez to 5.50-r0
  • Upgrades device-mapper-libs to 2.02.182-r0
  • Upgrades git to 2.20.1-r0
  • Upgrades nmap to 7.70-r3
  • Upgrades OpenSSH to 7.9_p1-r4
  • Upgrades libxml2-utils to 2.9.9-r1
  • Upgrades mariadb-client to 10.3.13-r0
  • Upgrades mosh to 1.3.2-r7
  • Upgrades mosquitto-clients to 1.5.6-r0
  • Upgrades nano-syntax to 3.2-r0
  • Upgrades nano to 3.2-r0
  • Upgrades openssl to 1.1.1b-r1
  • Upgrades ncurses to 6.1_p20190105-r0
  • Upgrades sqlite to 3.26.0-r3
  • Upgrades sudo to 1.8.25_p1-r2
  • Upgrades tmux to 2.8-r0
  • Upgrades vim to 8.1.0630-r0
  • Upgrades zip to 3.0-r7
  • Upgrades zsh to 5.6.2-r0
  • Upgrades zsh-autosuggestions to 0.5.0-r0
  • Replaces ttyd custom build with package
  • Adds support for ARMv7
  • Makes log_level optional
  • Removes custom log format override
  • Merge fix-attr scripts
  • Rewrite add-on onto Bashio
  • Fixes typo in GitLab CI file

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

:tada: Release v4.0.1

Full Changelog

Changed

  • Workaround Docker issue by reinstating legacy tags
  • Fixes Docker commands

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

I get this error after last upgrade:

[cont-init.d] 80-user-packages.sh: executing... 
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/armv7/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.b89edf6e.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.737f7e01.tar.gz: No such file or directory
ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/community: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/armv7/APKINDEX.tar.gz
WARNING: Ignoring APKINDEX.b53994b4.tar.gz: No such file or directory
ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/testing: temporary error (try again later)
WARNING: Ignoring APKINDEX.30e6f5af.tar.gz: No such file or directory
5 errors; 127 distinct packages available
[22:21:16] FATAL: Failed updating Alpine packages repository indexes
[cont-init.d] 80-user-packages.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

@keteflips Could you share your config? (without credentials of course)

{
  "log_level": "info",
  "ssh": {
    "enable": true,
    "port": 22,
    "username": "keteflips",
    "password": "tadada",
    "authorized_keys": [
      "ssh-rsa  ",
      "ssh-rsa ",
      "ssh-rsa"
    ],
    "sftp": false,
    "compatibility_mode": false,
    "allow_agent_forwarding": false,
    "allow_remote_port_forwarding": false,
    "allow_tcp_forwarding": false
  },
  "web": {
    "enable": true,
    "port": 8145,
    "username": "keteflips",
    "password": "tadada",
    "ssl": true,
    "certfile": "fullchain.pem",
    "keyfile": "privkey.pem"
  },
  "share_sessions": true,
  "packages": [
    "python",
    "python-dev",
    "py-pip",
    "build-base"
  ],
  "init_commands": []
}

Hello. After upgrading to latest 4.0.1. Terminal web accessed via https, giving me 400 error.

Log:

[2019/03/18 11:03:39:4072] ERR: lws_tls_server_vhost_backend_init: SSL_CTX_load_verify_locations unhappy
[2019/03/18 11:03:39:4694] ERR: Unable to load SSL Client certs file from  -- client ssl isn't going to work

system:

 Add-on version: 4.0.1
 You are running the latest version of this add-on.
 System: HassOS 1.11  (armv7 / raspberrypi3)
 Home Assistant version: 0.89.1
 Supervisor version: 148

Any ideas? Thanks.

@keteflips

That config just works on my end…

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: temporary error (try again later)

Are you having DNS issues?

@kpcz That issue is being tracked here: https://github.com/hassio-addons/addon-ssh/issues/64

1 Like

I can resolve this domain in my ssh console in hassio.

core-ssh:/config# ping dl-cdn.alpinelinux.org
PING dl-cdn.alpinelinux.org (151.101.132.249): 56 data bytes
64 bytes from 151.101.132.249: seq=0 ttl=54 time=12.387 ms
64 bytes from 151.101.132.249: seq=1 ttl=54 time=12.313 ms
64 bytes from 151.101.132.249: seq=2 ttl=54 time=11.235 ms
^C
--- dl-cdn.alpinelinux.org ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 11.235/11.978/12.387 ms