Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 3rd, 2003, 06:14 AM
Authorized User
Join Date: Aug 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default sftp and cronjob

I want transfer file daily to remote machine daily using cronjob.

This can achieved via ftp (with the code below) but my concern is on the security site. Anyone can sniff and get my username and password of my ftp server.

After doing some research I found out that I need use rsync over ssh/sftp to achive via a secure tunnel.

To my understanding I need create public key and copy this over to the other server so that when ssh it will not prompt for password.

Is this approach secure? Can another machine masquerade as the trusted host?

# current ftp cron job with cleartext password which is unsecure

cd /home/ftp/
ftp -inv <<!
user ganesh 123456
put global.php


Old October 22nd, 2004, 10:07 AM
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts


rsync over ssh is pretty secure - it uses public key crypt. As long as you keep your private key secure it's /extremely/ difficult to break this stuff...

Don't Stand on your head - you'll get footprints in your hair. http://charlieharvey.com

Similar Threads
Thread Thread Starter Forum Replies Last Post
API for Secure FTP (SFTP/SSH) redbudval Pro VB.NET 2002/2003 2 December 7th, 2007 06:27 PM
how can I use SFTP instead of using FTP? renee_santoscoi Classic ASP Basics 0 January 26th, 2005 08:00 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.