0

I'm really stumped here and so are my friends. I've tried every fix in the book and thus far nothing has worked. I wanted to try out VSCode's Remote-SSH feature so I installed VSCode and the Remote Development extension on my VPS and my local machine. Everything was great, I opened /root/ and started messing around in the terminal. Here's the weird part, when I tried opening a file, dead.letter if you were wondering, my VPS just died. It basically obliterated all networking functions and instantly dropped my SSH connection. My web server died, everything just died. All inbound and outbound connections just died. It also entirely deleted netplan and the /etc/netplan directory. I've remade the netplan config, I've re-symlinked /etc/resolv.conf, I've reinstalled netplan by mounting an ISO with the DEB file, I've restarted so many networking services. Help would be greatly appreciated because the web server runs a forum and the users are a bit sad.

Thanks in advance!

onyxcode
  • 1
  • 1
  • That is really bizarre. I am tempted to wonder if your system was malware infected or something. Anyway, how are your backups? Might be easiest to just rebuild the VPS from your backups? – Zoredache Feb 15 '21 at 16:50
  • @Zoredache The sad thing is I can't get the backups off the system because it has no networking. The only way I'm able to access it is direct over KVM, thank goodness my host gave us that. – onyxcode Feb 15 '21 at 16:54
  • You must not use `root` account for daily activities. Always use a normal user account to have protection against events like this. – Tero Kilkanen Feb 15 '21 at 17:06
  • @TeroKilkanen I see that now :( – onyxcode Feb 15 '21 at 17:22
  • VPS providers often have rescue systems, which can be used to restore backups. – Tero Kilkanen Feb 15 '21 at 21:09
  • @TeroKilkanen Yep, I used Rescue Mode, and I didn't really have any backups come to find out. – onyxcode Feb 19 '21 at 06:28

1 Answers1

0

I'm going to mark my own question as resolved because after hours of fiddling with system hostname files and iptables it now works again...still not sure what happened.

onyxcode
  • 1
  • 1
  • do you have any more info on what you did to solve this? Since trying vscode remote from OSX to Raspberry Pi, I can no longer connect to the pi from this mac. All other devices are fine, and I can do an ssh hop to get onto it, but I can't even ping directly between the Pi and the mac anymore. – James P Mar 08 '21 at 22:45
  • @JamesP not really, me and my hosting provider just messed around with iptables until everything worked – onyxcode Mar 09 '21 at 16:29