• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rsync do shell script password..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rsync do shell script password..


  • Subject: Re: rsync do shell script password..
  • From: Wayne Melrose <email@hidden>
  • Date: Thu, 13 Sep 2007 10:34:24 +0200


On 13/09/2007, at 10:24 AM, Simon Forster wrote:



On 13 Sep 2007, at 09:00, Wayne Melrose wrote:

On 13/09/2007, at 9:50 AM, Axel Luttgens wrote:

According to rsync's man page, 1. and 2. only apply when syncing to a remote rsync server, not when running rsync over a remote shell.
Put in other words, 1. and 2. store a password used to authenticate against a remote rsyncd daemon, not to authenticate a remote user.


That's what I thought would be the case, so I was kinda hoping that applescript would have a method of applying the remote servers password.. (Maybe something similar to using username and password to perform Administrator Privs on local shell script commands)

I imagine that Chris Nebel, if he were awake, would raise the spectre of Expect (expect − programmed dialogue with interactive programs [man expect]) to achieve your stated goal. Personally I've gone the somewhat insecure route of setting up ssh keys without a password (which actually seems more secure than relying solely on passwords given the prevalence of dictionary attacks - although keys and passwords obviously are the best way to go). It's reasonably trivial to set up ssh to use keys - but you stated that usage was in a larger AppleScript (which may be distributed to many?), so this approach may not fly.


How many files are you syncing across? What's the total size? Would FTP better serve your needs?

Simon Forster

Simon,

Funnily enough I did a very similar thing with FTP about two weeks ago, very handy, although in this case I want to make sure that the files are only replaced if they are changed..

My fall back is to mount the volumes first, then just use the paths to the volumes to sync the files.. I was just hoping I could use a remote shell, save the hassle of mounting volumes..

I did think seriously about the ssh keys, although I'd like to avoid the setup, as it may change (constrict changes to applescript.. that way anyone can administer it. )


Maybe Chris will pipe up when he's awake :)

Wayne


_______________________________________________ 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
  • Follow-Ups:
    • Re: rsync do shell script password..
      • From: Simon Forster <email@hidden>
References: 
 >rsync do shell script password.. (From: Wayne Melrose <email@hidden>)
 >Re: rsync do shell script password.. (From: Axel Luttgens <email@hidden>)
 >Re: rsync do shell script password.. (From: Wayne Melrose <email@hidden>)
 >Re: rsync do shell script password.. (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: rsync do shell script password..
  • Next by Date: Re: rsync do shell script password..
  • Previous by thread: Re: rsync do shell script password..
  • Next by thread: Re: rsync do shell script password..
  • Index(es):
    • Date
    • Thread