Copy files from non-booting VPS

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?

0
задан 13 April 2017 в 15:22
1 ответ

Отсюда я не могу понять, что не так с вашим VPS и почему вы не можете открыть сеанс SSH для своего загрузочного Mint. Убедитесь, что служба ssh запущена и прослушивает порт 22. Однако, если у вас есть работающее интернет-соединение на вашей Mint OS, вы можете загрузить нужные файлы, например, через FTP на внешний сервер.

Как восстановить ваш VPS, это вопрос, на который я не могу ответить, используя предоставленную вами информацию. Возможно, вы сможете найти что-нибудь в журналах вашего сервера. Успех!

0
ответ дан 5 December 2019 в 09:41

Теги

Похожие вопросы