October-12th-2018, 11:52 AM
hello,
is there a way to install an ssh service to a running container?
I tried to add
manually to the installed nodered-fieldbus container and didnt get any errors
but when trying to connect via putty, it says connection denied..
how to add ssh server correctly?
**i also published the port 22 when setting up the container
is there a way to install an ssh service to a running container?
I tried to add
Quote: apt-get install -y git openssh-server \
&& echo 'root:root' | chpasswd \
&& sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \
&& mkdir /var/run/sshd \
manually to the installed nodered-fieldbus container and didnt get any errors
but when trying to connect via putty, it says connection denied..
how to add ssh server correctly?
**i also published the port 22 when setting up the container