I'm running an Ubuntu LTS server on an older PC for personal projects. The issue I'm facing is that every time I reboot the server, I have to physically log in before I can SSH into it from another computer. I want to know if there's a way to access the server via SSH without needing to log in physically after a reboot. I've done some research but only found information about passwordless SSH login, which isn't what I need. Any guidance would be appreciated!
5 Answers
This shouldn't be happening. When you try to connect after a reboot, are you getting any specific error messages? It'd help to know if you can ping the server at all to figure out what's going wrong.
Right, this is supposed to be the default behavior. Could you let us know if you have to run any additional commands to get SSH working, or does it just fail without physical login? It helps figure out what's wrong.
Are you using drive encryption? If so, that might be why you have to log in locally to decrypt before you can access via SSH. Check your setup to see if that's the case.
If the SSH daemon is enabled and set to start automatically on boot (you can check with `systemctl enable sshd`), then you shouldn't need to log in first. It sounds like it might not be starting correctly. Usually, SSH should work right after booting unless there's another configuration issue at play.
You might want to ensure the SSH service is configured to start on boot. Run `sudo systemctl enable sshd` to make sure it's set up correctly. Typically, SSH is designed to allow remote connections right after boot, so something isn’t quite right.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures