As I was experimenting with various things I deleted the file /etc/netplan/50-cloud-init.yaml. Now I can't get any network (ethernet or wifi) to connect. So I can't ssh to fix things. I am on Ubuntu Server 20.02. I can't even find a terminal (shell) app in the default gui. Help?
Easily done and its good to play..
Login to your machine via the console.. and use your editor of choice to edit /etc/netplan/50-cloud-init.yaml.
network: version: 2 ethernets: eth0: dhcp4: true match: driver: bcmgenet smsc95xx lan78xx optional: true set-name: eth0 wifis: wlan0: optional: true dhcp4: true access-points: <Your ESSID>: password: <Your Pass-Phrase>
Then run..and check and fix any syntax/errors
Once that command is happy run:-
You should have networking back..