Synology NAS using Docker install home assistant,Successful and able to access http://IP:8123 correctly。But can’t use putty to log in to homeassistant, because he landed on Synology NAS(Homeassistant is the same as Synology NAS’s IP, and SSH service ports are also 22)。How to solve the problem of putty landing homeassistant, thank you!
Hi,
Do you need to log in via SSH to docker container?
The easiest way to do is to SSH to NAS and then run command:
docker exec -it ‘containerIdOrName’ bash
# example:
#sudo docker exec -it homeassistant bash
But, if the only need for you to SSH to homeassistant docker container is to modify config files - I would recommend exposing volume of configuration files and simply accessing the files via shared files in NAS.
Thank you for your help, but this command can go into the homeassistant directory, but the command is wrong.
What are you actually trying to do? Because based of your initial query, what you’ve shown in the screen capture is a successful connection into your docker container via SSH. Those commands you are trying to input seem like they are for a rpi setup rather than docker.
Yes, you can use a lot of commands in the container. Some components should be installed so you can use them.
Official HASS docker image is based on python 3.6 and doesn’t include all the linux stuff.
You can use some things though:
So, not sure what are you trying to do here…
I want to use homeassistant and homebridge to play sonoff, and I’ve installed homeassistant and homebridge in synology NAS docker. According to the guidance of the tutorial, you will now run the following code to configure and install through the putty landing homeassistant. But putty can’t log on to homeassistant and can only log on to synology NAS.
There are terminals in the docker’s homeassistant container, and are these commands running in the terminal? I tried to fail to copy these commands to the terminal one by one.
sudo nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
sudo apt-get update
sudo apt-get install -y samba screen git
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get -y install libavahi-compat-libdnssd-dev
sudo npm install -g --unsafe-perm homebridge hap-nodejs node-gyp
cd /usr/lib/node_modules/homebridge/
sudo npm install --unsafe-perm bignum
cd /usr/lib/node_modules/hap-nodejs/node_modules/mdns
sudo node-gyp BUILDTYPE=Release rebuild
cd /
sudo npm install -g homebridge-homeassistant
homebridge
—I want to use homeassistant and homebridge to play sonoff, and I’ve installed homeassistant and homebridge in synology NAS docker. According to the guidance of the tutorial, you will now run the following code to configure and install through the putty landing homeassistant. But putty can’t log on to homeassistant and can only log on to synology NAS.
There are terminals in the docker’s homeassistant container, and are these commands running in the terminal? I tried to fail to copy these commands to the terminal one by one.
sudo nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
sudo apt-get update
sudo apt-get install -y samba screen git
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get -y install libavahi-compat-libdnssd-dev
sudo npm install -g --unsafe-perm homebridge hap-nodejs node-gyp
cd /usr/lib/node_modules/homebridge/
sudo npm install --unsafe-perm bignum
cd /usr/lib/node_modules/hap-nodejs/node_modules/mdns
sudo node-gyp BUILDTYPE=Release rebuild
cd /
sudo npm install -g homebridge-homeassistant
homebridge
You are using some guide for the raspberry pi which is not applicable to docker container.
Your best bet would be to use a separate docker container which is running homebridge.
Check this guide:
https://hub.docker.com/r/marcoraddatz/homebridge/
Or maybe there might be something similar. I am presonally not using homebridge so don’t know and can’t test…
Even this container seems to be what you might be looking for:
https://hub.docker.com/r/jharmn/docker-homebridge-homeassistant/