October-12th-2018, 12:57 PM
Well the code you mentioned in your post is just half of the work. The code installs everything needed for SSH. But you have to start the SSH server in your container
If you look for example to our Raspbian container here you will detect your code section there as well which is fine.
But there is also the start script entrypoint.sh. And in this start script the SSH server is started finally before the script vanishes in an endless loop.
Here is the code you find in there and you need to add to you start script as well:
echo "starting ssh ..."
sudo /etc/init.d/ssh start
Regards
Armin
If you look for example to our Raspbian container here you will detect your code section there as well which is fine.
But there is also the start script entrypoint.sh. And in this start script the SSH server is started finally before the script vanishes in an endless loop.
Here is the code you find in there and you need to add to you start script as well:
echo "starting ssh ..."
sudo /etc/init.d/ssh start
Regards
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)