This question already has an answer here:
- Why can't I restart/shutdown? 3 answers
I've encountered a weird problem imo, and none of my co-workers have no idea why this keeps happening.
First of, I've built a little server machine for beta testing of my upcoming software & website. I installed Ubuntu Server 13.10 on the machine and openssh-server on it. The machine has only ethernet cable plugged in, no monitors or keyboards. My router uses a dhcp server but I have setuped a static ip for Server. I can remotely access it from public easily. I forwarded ssh port from my router. I did some changes to my website files and then I decided for some odd reason to reboot the server. After rebooting it, I cannot access it from public anymore. The server is currently at home and I'm away. But I managed to get physically to the server today. I plugged in a monitor to inspect in which state the server is. The server was on logon state. I checked is router working fine by connecting into wlan with my phone, and went to whatsmyipaddress.com. IP hadn't changed and connection was working. I didn't have keyboard nor my laptop with me to inspect it further. I assumed it was working because it had rebooted and internet connection was fine. When I finally made it to my laptop and tried to connect with putty it said "Network error: Connection refused". My lucky guess is that after every reboot I need to login physically on the server before ssh connections will work.
I googled and found about of autologin. Wouldn't that then be a security issue? I mean you could just make a ssh connection from every single machine with internet connection if you just happen to know the IP address, and then you could just mess everything up, am I right?
I need some suggestions what to do for this. I get to the server machine again tomorrow morning with laptop and keyboard this time so I can inspect it further. I hope you guys make up some suggestions what I should do about it. I must be able to reboot the server remotely, and then get back on it after reboot.
The best regards, Roope