[SOLVED] Connect via SSH to LXC

Thewav

New Member
Dec 22, 2015
3
0
1
28
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 !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!