This image provides 2 different variants:
latest
(default)dev
You can use one of those variants by adding them to the docker image name like this:
docker pull homeautomationstack/fhem-ssh:latest
If you do not specify any variant, latest
will always be the default.
latest
will give you the current stable version.
dev
will give you the latest development version.
This is a multi-platform image, providing support for the following platforms:
Linux:
Windows:
- currently not supported
The main repository will allow you to install on any of these platforms. In case you would like to specifically choose your platform, go to the platform.related repositories by clicking on the respective link above.
The platform repositories will also allow you to choose more specific build tags beside the rolling tags latest, current and dev.
Login is only possible using SSH keys.
- Create data folder on your host together with a file named
authorized_keys
. - Put your personal public SSH key into the
authorized_keys
file. - Start your container with a specific volume
-v /my/data/path/:/data/
to make that data available to the container.
To start an interactive FHEM shell, simply connect to this container, using the user fhem
:
ssh fhem@192.0.2.1
You may directly interact with FHEM as you would do with any other SSH remote machine:
ssh fhem@192.0.2.1 help
The session will automatically terminate after the command output was sent back to you.
The FHEM command inform
is handled differently with a permanent connection to allow monitoring of FHEM events.
As a default configuration, the container will connect to a host named "fhem" on port 7072 with no password set. You may adjust those settings by providing respective environment variables through your Docker run command:
-e FHEM_HOST=198.51.100.200
-e FHEM_PORT=7073
-e FHEM_PASSWORD=mysecretpassword