It’s a good thing this is my ‘practice’ server, rather than a production server…
I have a VPS that was running Ubuntu 16.04. I started an upgrade to 16.04.1 LTS – and then I lost my SSH connection when there was a dialog on screen.
I tried
sudo screen -D -r
No luck.
After some googling, I followed the top answer at https://askubuntu.com/questions/346678/how-do-i-resume-a-release-upgrade :
sudo apt-get install -f
sudo dpkg --configure -a
Lots of installation and configuration scrolled by for about an hour.
The VPS still worked, though very slowly, so I did...
sudo shutdown -r now
The VPS no longer boots. I used the VPS-provider’s control panel to mount a Linux Mint ISO, and I can boot that, and VNC into it. I can see my VPS file-system.
When I attempt to SSH to the VPS, the connection is refused.
My question is this…
How can I copy some files from the non-booting VPS to my Win10 PC?
Oh, and a bonus question too…
I’m going to copy the files off, then reinstall the VPS. However, if I didn’t want to reinstall, is there a noob way to reliably revive this VPS to full function?