issue with rocky linux lxc

luciandf

Active Member
Feb 20, 2020
25
0
41
42
Hello all,

Today I tried an experiment. I want to see if I could setup a computing cluster with rocky linux lxc containers and adapting a recipe from OpenHPC. This last part is irrelevant for my question because I couldn't get past setting up a key based ssh communication between two lxc containers running rocky 9. I was trying to ssh from one to the other using the root account. I had enabled all the usual settings in sshd and restarted the service. The containers were privileged and no firewall.

I got the feeling that there is something missing in them (for example I had to manually install ncurses and which among some other things). I had the feeling that lxc containers were full blown distributions just sharing the kernel with the proxmox host. Has anyone experienced this problem with ssh connection from one container to another?
 
If you can ping the containers from each other, your issue exceeds the scope of this forum and is a normal linux admin question. have you installed and enabled openssh-server on the destination?
yes I did! I had created ssh key pairs from source and copied the public key to the destination. Allowed PermitRootLogin yes etc. etc. I believe I did all the necessary steps. Indeed I could ping the containers between them but other than that nothing.

I understand it may exceed the scope of the forum, I was wondering if anyone seen something like this and if the containers are somehow missing something (not sure how to phrase it)