Cannot log in to root through "tty" (local keyboard+monitor/web's console). How to achieve this ?

Aria P

Member
Sep 30, 2018
1
0
21
With LXC container that in its setup configured to login with public-private key instead of password, the "root" account cannot be logged in through local physical access (tty) or web GUI's console.

How can i achieve this with self-added user in ubuntu/debian based guest system ?
 
With LXC container that in its setup configured to login with public-private key instead of password, the "root" account cannot be logged in through local physical access (tty) or web GUI's console.

How can i achieve this with self-added user in ubuntu/debian based guest system ?
public-private keys login is a method for access via ssh and not possible for a consoie login. If you want to login into an lxc container without password you may use from host's command line
Code:
lxc-attach -n <vmid>