LXC Container getting a SSH-Connection from Container to Container with root

626 views Asked by At

Currently, I'm investigating an issue with my container. I've got a Host with 2 Container which should be linked via Corosync. It's essential that these need to be connected with SSH for Corosync, but if I add normal users I can get the public key without a problem:

Here I try to copy the public key with a normal user

I want to get the Public key of my root, which I already generated with ssh-keygen and I used a passphrase, but if it tries to connect and I enter the passphrase while I want to copy the public key it says that mine is denied. This only occurs with the root user:

Here is the problem with my root

I really need help to fix that, i dont know why this happens...maybe he tries to use the root of my host machine, because i use lxc-attach to enter it.

0

There are 0 answers