I cannot login to a 16.04.4 LTS desktop installation after reboot via SSH unless I first login to the console locally (set to boot text only, not GUI).
According to this answer, network connections must be "system connections" in order for them to resolve (acquire an IP from DHCP) at boot time, prior to login. In this Ubuntu help tutorial, nothing is mentioned about initializing a connection prior to login, and this answer suggests simply modifying /etc/network/interfaces
. I've tried this last answer, but I still can't ping the host until a local login is completed and the network connection is initialized.
Yes, I'm aware that my connections may not be named eth0. I've set them up as follows ...
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
#_#auto enp0s25
#_#iface enp0s25 inet dhcp
#_#
#_#auto wlp2s0
#_#iface wlp2s0 inet dhcp
... where all of the #_#
commented lines were uncommented, but that actually caused another issue, because then ubuntu made another set of similarly named interfaces and no networking worked at all...
How do I set the interfaces to properly initialize at boot instead of at login?
auto lo
andiface lo inet loopback
lines in my/etc/network/interfaces
file. – Terrance Jul 25 '18 at 18:34unattended-upgrades
occasionally needs the server to reboot, e.g. at 03:00 AM. Would be a nuisance to get up and log in locally before it got access to the network. – Jos Jul 25 '18 at 18:54psk
value is in plaintext. The information from this tutorial I linked in my question gave me the information I needed to encrypt the WPA passphrase. – user3.1415927 Jul 27 '18 at 19:06