LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-14-2003, 08:35 AM   #1
eduac
Member
 
Registered: Jun 2003
Distribution: Arch - www.archlinux.org
Posts: 186

Rep: Reputation: 30
a good cron/scp tutorial


Anyone have a good scp into crontab tutorial?
 
Old 08-14-2003, 12:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What do you mean by this?
How to use scp in a cron job to transfer files?
If you have a lot of files then try rsync over ssh with passwordless logins.
 
Old 08-14-2003, 12:32 PM   #3
eduac
Member
 
Registered: Jun 2003
Distribution: Arch - www.archlinux.org
Posts: 186

Original Poster
Rep: Reputation: 30
i mean use the scp [source] [login@ip:/path] into the crontab...



rsync ? under in ssh? how can i do this dude?
 
Old 08-14-2003, 12:40 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
1st you need to set up passwordless logins:
1) login as USER on the client (where you want to connect from)
2) ssh-keygen -t dsa
(don't suppy a passphrase now - you can do that later once the first bit works)
3) scp /home/USER/.ssh/id_dsa.pub REMOTEHOST:/home/USER/.ssh/authorized_keys2
(you will need to enter your password this one time)
4) ssh REMOTEHOST

Then create a crontab entry that runs the command:
Code:
rsync -e ssh -arz --delete /local/path/ user@other.server:/remote/path/
 
Old 08-29-2003, 10:19 AM   #5
eduac
Member
 
Registered: Jun 2003
Distribution: Arch - www.archlinux.org
Posts: 186

Original Poster
Rep: Reputation: 30
sorry dude, but this guide dont working on
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp problem in cron job andreolira Linux - General 9 09-08-2008 04:27 PM
scp does not work with cron jobs yogendrarawat Linux - Newbie 2 09-15-2005 02:34 AM
cron jobs - tar scp in one line? bkeating Linux - Software 1 11-04-2003 03:49 PM
scp Good arugments? bkeating Linux - Software 3 10-21-2003 02:50 PM
New to cron programming: need to find a good tutorial lhoff Programming 1 03-31-2002 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration