I was following Learn Linux TV video tutorial to create a VM template. I mistakenly ran the following commands on the Proxmox server and not the VM:
sudo rm /etc/ssh/ssh_host_*
sudo truncate -s 0 /etc/machine-id
sudo ln -s /etc/machine-id /var/lib/dbus/machine-id
I still have console access but no ssh capability. How do I fix SSH access and anything else I may have screwed up? This Proxmox server is part of my homelab but has about a dozen VMs currently on it. So I would like to avoid a fresh install. Hopefully its a simple fix.
Note: I'm a network guy trying to learn some sysadmin skills. I know enough about Linux to be dangerous.
sudo rm /etc/ssh/ssh_host_*
sudo truncate -s 0 /etc/machine-id
sudo ln -s /etc/machine-id /var/lib/dbus/machine-id
I still have console access but no ssh capability. How do I fix SSH access and anything else I may have screwed up? This Proxmox server is part of my homelab but has about a dozen VMs currently on it. So I would like to avoid a fresh install. Hopefully its a simple fix.
Note: I'm a network guy trying to learn some sysadmin skills. I know enough about Linux to be dangerous.