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.