Re: CRON SCP

From: Nikola Krgovic (nkrgovic@sezampro.yu)
Date: 03/30/02


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



Relevant Pages

  • Re: [opensuse] No sux in 11.0?
    ... to help fixing the discussion could you exactly ... list the commands necessary to have yast2 run in X mode on a remote server, ... if you don't allow passwords or insist on long passwords. ... So, in my opinion the easiest way it to just allow root login via ssh, ...
    (SuSE)
  • Re: MORE SSH Hacking: heads-up
    ... Don't enable remote login for anyone who doesn't need it. ... >On critical systems I use only SSH keys: ... Without requiring keys SSH is as insecure as the least ... passwords to the computer I logged into, ...
    (Fedora)
  • Re: CVS over SSH hangs
    ... > DM> connection if remote program didn't close stdouton ... > process on the remote side on exit is immaterial; ... populate an RRDTool's database) that are run from cron every ... Some of our cron jobs are mission-critical. ...
    (comp.security.ssh)
  • Re: Remote Desktop Connection on a LAN?
    ... I set up a user "Remote" on both machines. ... From PC-B I can RDC to PC-A and gain control of it. ... Both computers must have users with passwords, ...
    (microsoft.public.windowsxp.hardware)
  • Unable to successfully setu p and use .Remote Desktop Connection.
    ... I haveWinXP PRO and WinXP SE OS's with Remote desktop installed. ... to successfully log on to the RDC. ... Remote connections might not be enabled or the computer might be too busy to ... I went back and added passwords under users as administrator. ...
    (microsoft.public.windowsxp.help_and_support)