[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: secure copy without user input



Mike Egglestone:
> Hi...
> I would like to be able to run a crontab where I could "scp" some files
> to a remote location....but so no user input for passwords is
> needed...
> Could some point me to where I could find info
> on how to do this?
> Thanks for your time!
> 
> Mike
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

This is quite simple. Just run ssh-keygen and an empty passphrase.
By default the key generated will be put in .ssh/identify.pub  copy the
line into the .ssh/authorized_keys into the home folder of target machine,
and you should be able to ssh and scp into the target machine without password.

man ssh-keygen and man ssh should give further help if needed.

Bjarne



Reply to: