a good cron/scp tutorial
Anyone have a good scp into crontab tutorial?
|
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. |
i mean use the scp [source] [login@ip:/path] into the crontab...
rsync ? under in ssh? how can i do this dude? |
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: |
sorry dude, but this guide dont working on
|
All times are GMT -5. The time now is 11:56 PM. |