[SOLVED] Can't login to Ubuntu 18.04 container created from supplied template

Colin 't Hart

Well-Known Member
Jan 20, 2017
56
6
48
51
Frösön, Sweden
www.hiawathaavenue.com
Hi,

I created an Ubuntu 18.04 container under Proxmox 4.4 from the supplied template. Didn't supply an SSH key, just a password.

But when I try to login on the console I type:

root <enter>

and then shortly after it says

Incorrect login

There's never a prompt for the password.

How do I even begin to debug this problem?

Logging in as a non-root user works fine. It also works fine on other 18.04 containers under Proxmox 5.3


And: is this the correct place to report issues with the supplied templates?

Thanks,

Colin
 
Last edited:
I debugged this by looking in /var/log/auth.log.

The unsuccessful logins under Proxmox 4.4 looked like

Feb 28 10:19:56 host1 login[19577]: pam_securetty(login:auth): access denied: tty '/dev/pts/0' is not secure !
Feb 28 10:19:59 host1 login[19577]: FAILED LOGIN (1) on '/dev/pts/0' FOR 'root', Authentication failure

while the successful logins under Proxmox 5.3 looked like (ignore that middle line)

Feb 28 10:37:37 host2 login[3519]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Feb 28 10:37:37 host2 login[3519]: pam_systemd(login:session): Failed to create session: Seat has no VTs but VT number not 0
Feb 28 10:37:37 host2 login[3557]: ROOT LOGIN on '/dev/tty1'

Something changed in Proxmox 5.3 so that the virtual console is now on /dev/tty1 rather than /dev/pts/0 under Proxmox 4.4

I have solved this by adding

pts/0

to /etc/securetty. I'm not sure if this is introducing a security hole though. I hope we can upgrade our Proxmox 4.4 nodes soon.
 
  • Like
Reactions: grahambo
I debugged this by looking in /var/log/auth.log.

The unsuccessful logins under Proxmox 4.4 looked like

Feb 28 10:19:56 host1 login[19577]: pam_securetty(login:auth): access denied: tty '/dev/pts/0' is not secure !
Feb 28 10:19:59 host1 login[19577]: FAILED LOGIN (1) on '/dev/pts/0' FOR 'root', Authentication failure

while the successful logins under Proxmox 5.3 looked like (ignore that middle line)

Feb 28 10:37:37 host2 login[3519]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Feb 28 10:37:37 host2 login[3519]: pam_systemd(login:session): Failed to create session: Seat has no VTs but VT number not 0
Feb 28 10:37:37 host2 login[3557]: ROOT LOGIN on '/dev/tty1'

Something changed in Proxmox 5.3 so that the virtual console is now on /dev/tty1 rather than /dev/pts/0 under Proxmox 4.4

I have solved this by adding

pts/0

to /etc/securetty. I'm not sure if this is introducing a security hole though. I hope we can upgrade our Proxmox 4.4 nodes soon.

Worked perfectly. Thanks
 

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!