Backing Up Linux VDS without Access

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
intermediate
New to forums
New to forums
Posts: 8
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Nov 01, 2013 11:30 am

Backing Up Linux VDS without Access

Post by intermediate »

Well I lost my root access to my VDS and I'm being told to
"On your Server Control tab, you can select OS install discs. Select one for your OS, or just go with Ubuntu. REboot the VDS, visit the VNC tab and select rescue mode or recovery mode.

The system will let you start an SSH daemon and you can connect with it, mount your disks, and SCP the backup files off of it."

Could someone provide a tutorial on this? It's like my IPs are being blocked by my own VDS.

When I attempt to login the VDS via Putty, I receive
http://i.imgur.com/jCNzGSa.png

I am positive that the password is correct because I tried to login with a different IP address, it worked for a moment but never worked since.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Backing Up Linux VDS without Access

Post by soja »

The instructions are fairly straight forward. By mounting the disk, it will boot to the disk instead of the OS on the drive. From there you can get a SSH daemon booted so you can use putty to connect. You can then use FTP over SSH to download your files(which will back them up).
Not a NFO employee
intermediate
New to forums
New to forums
Posts: 8
Joined: Fri Nov 01, 2013 11:30 am

Re: Backing Up Linux VDS without Access

Post by intermediate »

I got this error when I attempted to http://i.imgur.com/jOKsHCI.png
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Backing Up Linux VDS without Access

Post by soja »

Manually configure eth0 using the information on your "IP Addresses" tab. (DHCP isn't used by NFO servers)
Not a NFO employee
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Backing Up Linux VDS without Access

Post by Edge100x »

I'd personally use Gentoo, since it includes what you need and drops you to a nice, simple command-line.

The procedure to rescue files would be something like this.
  1. Select "install-amd64-minimal-20131010.iso" from the DVD images selector, and check the box to boot to the CD/DVD.
  2. Reboot the VDS.
  3. Quickly go to the VNC console page. It will have a prompt that times out after 15 seconds if you don't type anything; hit enter there.
  4. Wait for it to completely boot, leaving you with a command prompt.
  5. Configure the network and DNS (tailor these to your IP, netmask, and gateway):

    Code: Select all

    ifconfig enp0s4 1.2.3.4 netmask 255.255.255.0
    route add default gw 1.2.3.254
    echo "nameserver 8.8.8.8" > /etc/resolv.conf
    
  6. Mount your partition. It will likely involve a command like "mount /dev/sda2 /mnt/gentoo".
  7. Set a password using the "passwd" command.
  8. Start sshd using "/etc/init.d/sshd start".
  9. Log in through SSH/SFTP using your IP address and the password you defined above.
  10. Copy your files from /mnt/gentoo.
If you just forgot your password, though, that's usually a simpler process to recover from. Usually you can boot into single-user mode from your existing disk, without using a DVD, and set a new root password. There are many guides out there to do this, such as one for Ubuntu at http://askubuntu.com/questions/24006/ho ... e-password.
intermediate
New to forums
New to forums
Posts: 8
Joined: Fri Nov 01, 2013 11:30 am

Re: Backing Up Linux VDS without Access

Post by intermediate »

Are you able to look into my VDS before I do that because I feel like this is only a security issue that was implemented into my VDS and could easily be disabled by one of you guys rather than backing up my whole VDS.
intermediate
New to forums
New to forums
Posts: 8
Joined: Fri Nov 01, 2013 11:30 am

Re: Backing Up Linux VDS without Access

Post by intermediate »

"Log in through SSH/SFTP using your IP address and the password you defined above."

I can't seem to connect via FTP


Couldn't seem to edit my other post but http://i.imgur.com/DgYF1qt.png
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Backing Up Linux VDS without Access

Post by Edge100x »

It's "ifconfig" and not "ipconfig".
It's SFTP and not FTP.
You need to use your IP address/netmask/gateway and not the ones I gave as examples (1.2.3.4, etc).
intermediate
New to forums
New to forums
Posts: 8
Joined: Fri Nov 01, 2013 11:30 am

Re: Backing Up Linux VDS without Access

Post by intermediate »

Where could I obtain a SFTP
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Backing Up Linux VDS without Access

Post by Edge100x »

I recommend WinSCP as an SFTP client.
intermediate
New to forums
New to forums
Posts: 8
Joined: Fri Nov 01, 2013 11:30 am

Re: Backing Up Linux VDS without Access

Post by intermediate »

What would the username be? I'm using WinSCP.
I tried root
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Backing Up Linux VDS without Access

Post by Edge100x »

It would be root, with the password that you defined with "passwd".
joshh20
This is my homepage
This is my homepage
Posts: 146
Joined: Sat Mar 02, 2013 1:35 pm

Re: Backing Up Linux VDS without Access

Post by joshh20 »

SFTP is simply FTP through SSH, so without having to set up an FTP server, you are simply able to use SSH. SFTP is also typically more secure than FTP.
intermediate
New to forums
New to forums
Posts: 8
Joined: Fri Nov 01, 2013 11:30 am

Re: Backing Up Linux VDS without Access

Post by intermediate »

I tried to connect with the information I set, doesn't seem to work.
joshh20
This is my homepage
This is my homepage
Posts: 146
Joined: Sat Mar 02, 2013 1:35 pm

Re: Backing Up Linux VDS without Access

Post by joshh20 »

Are there any specific errors that are given?
Post Reply