Re: Rsync via Applescript
Re: Rsync via Applescript
- Subject: Re: Rsync via Applescript
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 15 Jul 2008 11:14:57 -0400
On Tue, Jul 15, 2008 at 9:12 AM, Rick Dwyer <email@hidden> wrote:
> Hello List.
>
> I can use the rsync command string below in Terminal without a problem
> (albeit, it requests a password).
>
> What do I have to do in Applescript to get this shell script to execute
> without requesting a password.
Well, first you need to get it so you can run it in Terminal without a
password. Then you can run it from AppleScript that way.
OR you can store your password within the AppleScript and have it
coded to supply it, but that's not terribly secure.
I recommend setting up ssh keys for your own account (not root) that
let you log into the remote system as root. Ideally, those keys would
be passphrase-protected and you would run the AppleScript from an
environment with an ssh-agent that has them activated (and only
activate them when you needed to run the script). For much less
security you could have the keys passphraseless, but then anyone who
got to your session could log into the remote system as root with no
password required anywhere. Which at the very least might get the
administrator of the remote system highly annoyed at you. Of course,
if that's you, that might not be a concern. :)
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden