Results 1 to 5 of 5
  1. #1

    send files to ftp via SSH?

    Does anyone know if there an easy way to send an entire directory and its contents via SSH to an external FTP? If this is possible, it is also possible to "tar" or "zip" them on the way?

    Thanks
    .
    Numaria.com For peace of mind +44 800 075 8187 +1 800 985 8187
    Shared Hosting • Reseller • VPS • Dedicated Servers • SSL • Domain Names
    .

  2. #2
    Join Date
    Apr 2004
    Location
    San Jose
    Posts
    902
    cd <srcDir>
    tar zcf /tmp/dist.tar.gz
    cd /tmp
    ftp <destHost>
    <log in>
    bin
    put dist.tar.gz
    quit
    rm dist.tar.gz
    Specializing in MySQL and website tuning for high traffic sites. cmwsci.com/

  3. #3
    Maybe I'm answering my own question here, but I just stumbled across WinSCP (http://winscp.net/eng/index.php). This is like an FTP interface to root access...

    anyone used it?
    .
    Numaria.com For peace of mind +44 800 075 8187 +1 800 985 8187
    Shared Hosting • Reseller • VPS • Dedicated Servers • SSL • Domain Names
    .

  4. #4
    Join Date
    Dec 2004
    Location
    New York City, NY, USA
    Posts
    735
    WinSCP transfers files from the computer it is being run on to a remote server. From what you ask it's probably not want you want.

    You probably want to try what sailorFred mentioned. If both machines have an FTP server you may also want to look into the "FXP" function in many FTP clients (e.g. FlashFXP); these can transfer files directly from one site to another.

  5. #5
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    14,135
    Keep in mind that using standard FTP protocol to transfer stuff from server to server is insecure. You should always investigate using sftp, or transferring over ssh2 protocol instead of using plain text ftp
    Tom Whiting, WHMCS Guru extraordinaire
    Linux problems? WHMCS Problems? Give me a shout
    Check out my WHMCS Addons

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •