Hilscher Community Forum
Using SSH in netPI-nodered-fieldbus image - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Using SSH in netPI-nodered-fieldbus image (/thread-250.html)



Answer - Schranz - March-6th-2018

Adding the SSH portion from the https://github.com/Hilscher/netPI-container-build-environment into the https://github.com/Hilscher/netPI-nodered-fieldbus image I was able to have access to the image.

Doing the same with the latest netPI-nodered-fieldbus image, the password does not get accepted. Could someone please have a look what I am doing wrong.
https://hub.docker.com/r/schranz/netpi-nodered-fieldbus-fram/builds/boqcendyptkwfrv6pmnnfkz/

The build log says something invoke-rc.d: policy-rc.d denied execution of start.I am totaly lost.


Answer - Armin@netPI - March-6th-2018

The error is easy to explain:

if you look to our image https://hub.docker.com/r/hilschernetpi/netpi-debian-stretch/, you see the Docker file uses this line which is made for Debian stretch

&& sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \

you are using the line for debian:jessie

&& sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config \

The sshd_config file has been change from one debian OS to the other using "prohibit-password" instead of "without-password".




Answer - Schranz - March-6th-2018

Thank you very much. Does work again.


Answer - Armin@netPI - March-6th-2018

Still you should not rely on Docker Hub service only to build images remotely on the web. You need definitively a Raspberry Pi 3 to make developments yourself locally right in front of your screen. Only with a Pi 3 you have possibilities for debugging.

There will be definitively a certain point where the netPI supports ends from the forum's point of view. In detail if users build their very own container image where non of us has a clue what have been compiled together.