I'm not able to lftp another FTP server FROM my VPS

June 27, 2015 1.7k views
Miscellaneous Debian

Hi all,

I would like to put on my VPS a website which is hosted on a shared hosting.

The obvious option is download the website to my PC and then upload it to the VPS using SFTP.

That's fine, but I think it would be better if I could mirror the website using lftp from my VPS.

I've installed lftp, but when I try to "ls" the remote host, it stucks on "`ls' at 0 [Connecting...]".

This is my lftp config:

set ftp:ssl-allow yes
set ssl:verify-certificate no
set ftp:passive-mode on

Do you know if I have to config something on my VPS in order to connect to the remote host? (I'm able to lftp the remote host from my pc)

Thanks in advance.

  • if you can ssh into your shared hosting account, you could just use rsync to send all of your website files to your vps, like this:
    (assuming you have ssh into your hosting account)

    rsync -e -av --recursive --progress --delete  --rsh='ssh' ~/path/to/website/files vpsuser@vpsipaddress:folder/for/website/files
  • Thank you very much for your response and the example.

    Unfortunately, the shared hosting doesn't let me access using ssh.

    If I can't use lftp, then, I could upload the code to the vps from my pc (a few megabytes) and then use wget to transfer the medias between shared hosting and vps (a few gigabytes).

    Still, I would love to know which is the problem by which I can't mirror the site with lftp.

Be the first one to answer this question.