I am trying to learn about Linux Containers and this is my first encounter with servers, ssh and many other things that I do not know the terms yet.
I create five different containers and authorized their keys for easy access between each other. They have internal ip (10.0.3.*). Now what I am trying is to connect these containers from other computers which are in the same network. I installed
openssh-server to my machine for
ssh access. But can't connect to container.
I search about it through the google but couldn't find any that works and I couldn't understand some of them.
Can someone explain (show me a way), assuming I am a beginner which I am, how to 'ssh' my containers from other machines?
If there are any additional info I need to give, I will asap. Thanks in advance.
When computers ssh each other they use eth0 or eth1. When computer(which containers are in) tries to connect to containers it uses loopback. Now lets assume we have two different computer, comp1 and comp2, which are in the same network a cisco modem that do not have internet connection. I can connect from comp1 to comp2 by;
But I cannot connect comp2's linux containers which are in the loopback. I want to connect them as easy as I connect comp2. Is there a way?