Results 1 to 5 of 5
Thread: send files to ftp via SSH?
-
04-25-2006, 05:17 PM #1Web Hosting Guru
- Join Date
- Oct 2005
- Posts
- 329
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
.
-
04-25-2006, 05:25 PM #2Web Hosting Master
- 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.gzSpecializing in MySQL and website tuning for high traffic sites. cmwsci.com/
-
04-25-2006, 05:29 PM #3Web Hosting Guru
- Join Date
- Oct 2005
- Posts
- 329
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
.
-
04-25-2006, 06:34 PM #4Web Hosting Master
- 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.Samat Jain | Rhombic Networks, LLC - Partner, CTO
-
04-25-2006, 06:40 PM #5
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