Re: rsync won't stop password prompt
Date: 08/19/05

  • Next message: Niklas Schönberg: "Re: File Permissions: Allow write, but not modify"
    Date: Thu, 18 Aug 2005 16:02:36 -0700

    Quoting Rob Brenart <>:

    > I'm trying to script an rsync process and I keep getting the password
    > prompt... here's my "script"
    > rsync -avz -e /usr/bin/ssh --password-file=/home/username/pwd.rsync
    > /home/user/test/ host:/home/username/test
    > And it works fine, but it prompts me for a password even though I'm
    > using --password-file
    > I also tried putting
    > export RSYNC_PASSWORD=pwd
    > but that didn't have an effect either.
    > Any help?
    You may want to try using rsync with ssh.
    I think the sarge version of rsync will automatically use ssh.
    The key to ssh, rsync and no passwords is to have manually generated
    ssh keys with a blank password. That way, when you ssh to another host,
    it just logs in.
    Combine it with rsync and away you go.
    A simple command like:
    # rsync -a host:/foo/ /foo/bar/
    should work fine with ssh.

    Check the ssh man page for more info on creating custom keys if you
    haven't been down that way before.


    To UNSUBSCRIBE, email to 
    with a subject of "unsubscribe". Trouble? Contact

  • Next message: Niklas Schönberg: "Re: File Permissions: Allow write, but not modify"

    Relevant Pages

    • Re: Detecting ssh waiting terminal input
      ... > rsync has MASSES of options and can keep you occupied for many moons ... > I'd suggest you get used the basic rsync and ssh stuff then start ... > people you don't trust can use to backup and restore their stuff using ... > passwordless keys that don't allow them any other access than backup ...
    • Re: Rsync problem - still unsolved
      ... not an ssh problem rather than an rsync problem. ... debug: client supports 1 auth methods: 'keyboard-interactive' ... Using keyboard-interactive authentication. ...
    • Re: [kde] Dolphin file copy question
      ... I am trying to use dolphin to copy a rather large directory (approx. ... Use rsync. ... rsync over ssh is quite easy indeed. ... workstation is 64-bit while my netbook is 32-bit, ...
    • Re: how to cleanup mail
      ... synchronizing directories on several 5.0.7 servers, ... One thing you could do is don't use SCO's supplied ssh or rsh as the ... don't use any ssh or rsh but use native rsync directly instead. ... you can even use the pre-digested source from the sco ftp site ...
    • Re: rsync help requested
      ... Things will probably easier if you just use rsync ... without ssh until you've got it working. ... this client/server relationsip would be the way that a client web ... browser connects to a web server to view a page. ...