I have an Ubuntu host running Ubuntu lxc containers. Whenever I try to ssh between containers, I get:
root@master02:~# ssh root@slave01 -vvv OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to slave01 [10.0.3.21] port 22. debug1: connect to address 10.0.3.21 port 22: Connection refused ssh: connect to host slave01 port 22: Connection refused
As you can tell, it is not a DNS problem.
If I have a container running centos on the same host, I have ssh into that container just fine.
The container was made with the command:
lxc-create -t ubuntu -n slave01
From the host, I am able to attach to slave01 just fine. For an application that I'm working with, I need to ssh between the containers themselves.
I haven't been able to find anything in any log file, either on the host nor the containers.