Subject: sftp and cronjob
Posted By: ganesh15 Post Date: 12/3/2003 5:14:44 AM
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
#!/bin/sh

cd /home/ftp/
ftp -inv <<!
open 192.168.0.117
user ganesh 123456
bin
put global.php
exit

Regards,
Ganesan

Reply By: ciderpunx Reply Date: 10/22/2004 10:07:32 AM
Hey,

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

Go to topic 15096

Return to index page 736
Return to index page 735
Return to index page 734
Return to index page 733
Return to index page 732
Return to index page 731
Return to index page 730
Return to index page 729
Return to index page 728
Return to index page 727