Three days ago, I received an email from DigitalOcean. They said that they were doing some maintenance and my VPS, the one that currently runs this website, will be rebooted soon. I didnโt pay much attention to that.
Today, I wanted to look at my websiteโฆ and it didnโt open. The server didnโt even respond to ping
. Yes, yes, I should use a service that monitors my stuff, I know. Few people care about my website though :D
So I rebooted the server, went to the DigitalOcean VNC console, logged inโฆ as a regular user that canโt sudo
. Becuase For Securityโข, my sudoer account does not have a password. Only authorized SSH keys. Fuck.
The solution was to use the JavaScript devtools to automate typing the ssh key into the console and ssh to localhost as the regular user. The script was suggested by someone on DigitalOceanโs support site. I had to modify it a little to work with newlines. However, mistakes were introduced: some letters ended up as lowercase instead of uppercase or vice versa. After getting in as a sudoer, I was able to set up networking.
The actual problem? bsd-cloudinit didnโt work because a symlink in /etc/rc.digitalocean.d
was broken, and as a result, the network settings were not set.
Iโd say that the actual actual problem is the use of cloud-init
stuff instead of, you know, DHCP/SLAAC.