[SOLVED] Connect via SSH to LXC

Thewav

New Member
Dec 22, 2015
3
1
1
30
Hi,

I would like to connect to my LXC container as root using SSH but I always end up with "Access Denied", I tried the password of my "main server" and the one I defined creating the LXC but it never works. So which password should work/I use ?

Thanks in advance for you anwsers.
 
* Change root password
* Try to debug from client side (ssh -v host) and from server side (/usr/sbin/sshd -d )
* Try to read sshd_config again.
 
  • Like
Reactions: alkopz
Maybe sshd forbid to use password for root account ? Look at /etc/ssh/sshd_config file
You were actually right, I just haven't look on the right lxc I switched them all to "PermitRootLogin yes", it works now.
Thank you !