Strangely, Unable to log into containers (password issue)

agarg

Member
May 15, 2022
21
2
8
I have a server (micro.lan / 192.168.111.40). I created two lxc debian 12 containers (micro-lamp.lan / 192.168.111.41 and micro-files.lan / 192.168.111.42). I distinctly remember the password for root and changing the /etc/ssh/sshd_config for root login allowed yes.

I am not getting the console on proxmox web interface despite clearing cache. And when I try to log in using ssh, it does not allow and says wrong password.
When I do pct enter from the proxmox to container it says permission denied. Any pointers?
Code:
agarg@LM5550AG:~$ ssh -l root 192.168.111.40

root@192.168.111.40's password:

Linux micro 6.8.12-8-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-8 (2025-01-24T12:32Z) x86_64

The programs included with the Debian GNU/Linux system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

permitted by applicable law.

Last login: Mon Feb  3 19:24:02 2025 from 192.168.111.210

root@micro:~# pct enter 10400

bash: /root/.bashrc: Permission denied

root@micro-lamp:/#

I had imported a prior zfs pool & data sets and in one of those, I have created the disk images. Is it possible that there are some permission issues with that?
Code:
root@micro:~# zfs list
NAME                                      USED  AVAIL  REFER  MOUNTPOINT
micro-12tb                               8.90T  1.87T  1011G  /mnt/micro-12tb
micro-12tb/4tb                           2.80T  1.87T  2.80T  /mnt/micro-12tb/family/4tb
micro-12tb/family                         166K  1.87T   166K  /mnt/micro-12tb/family
micro-12tb/micro_media                    849G  1.87T   849G  /mnt/micro-12tb/micro_media
micro-12tb/old.agarg                     77.0G  1.87T  77.0G  /mnt/micro-12tb/old.agarg
micro-12tb/old.media                     4.06T  1.87T  4.06T  /mnt/micro-12tb/old.media
micro-12tb/old.rgarg                      144G  1.87T   144G  /mnt/micro-12tb/old.rgarg
micro-12tb/old.tgarg                     36.0M  1.87T  36.0M  /mnt/micro-12tb/old.tgarg
micro-12tb/prox-lxc                      1.30G  1.87T   153K  /mnt/micro-12tb/prox-lxc
micro-12tb/prox-lxc/subvol-10400-disk-0   972M  99.1G   972M  /mnt/micro-12tb/prox-lxc/subvol-10400-disk-0
micro-12tb/prox-lxc/subvol-10410-disk-0   360M  49.6G   360M  /mnt/micro-12tb/prox-lxc/subvol-10410-disk-0
root@micro:~#
 
Last edited: