I have setup a Debian 11 headless server in my local network. I want to connect to this box over SSH, but every time it boots up, it gets stuck in a login prompt, and I won't be able to SSH into this until I physically connect keyboard to this server and login.
The server won't establish Ethernet connectivity until I physically login to this server. Only after I physically login, this connects to Ethernet, and then I can SSH from other devices. This creates a problem, since anybody can connect a keyboard and a monitor to this server and access my data since auto-login is setup.
What is the appropriate way to setup or mitigate this behavior?
Edit-0: tl;dr : I want to disable tty login prompt on startup and only allow ssh login. I have no reason to have a tty since I want this to be completely headless.
Edit-1: I have fixed the issue and decided to keep the TTY login prompt so that it can be of help during an emergency