Re: CRON SCP
From: Nikola Krgovic (nkrgovic@sezampro.yu)Date: 03/30/02
- Previous message: Jeff Strope: "CRON SCP"
- In reply to: Jeff Strope: "CRON SCP"
- Next in thread: Bogomips: "Re: CRON SCP"
- Reply: Bogomips: "Re: CRON SCP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Nikola Krgovic <nkrgovic@sezampro.yu> Date: Sat, 30 Mar 2002 18:32:03 +0100
Jeff Strope wrote:
> I'm trying to cron a job that sends database backups to a remote
> machine. However, I do not want to send passwords over the command
> line. I know SSH allows non-password authentication, and was wondering
> if someone could tell me how to set up both ends to automatically
> authenticate to send these files.
It's realy easy. Just generate keys on the end you will run the cron
script with ssh-keygen. You will then have your key in the identity.pub
file in your .ssh dir. Then copy that key to the remote machine and put it
in the authorized_keys2 file (2 if you are, and you should be, using ssh2).
From then you will not need to type in the password ever, no matter what
are you doing (scp, ssh...).
You can allways do
$ man scp
and
$ man ssh
for more info...
Regards,
Nikola
- Previous message: Jeff Strope: "CRON SCP"
- In reply to: Jeff Strope: "CRON SCP"
- Next in thread: Bogomips: "Re: CRON SCP"
- Reply: Bogomips: "Re: CRON SCP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|