rync w/ user and pass

Posted on 2007-08-02
Last Modified: 2010-08-05
how can I rsync to an external server using a username and password? can i do this all in the command without adding anything to the conf file?

Question by:qwertq
    LVL 28

    Accepted Solution

    I would recommend using rsync over ssh.

    The process to generate and put into place the publlic key is very easy and well described here:
    LVL 7

    Expert Comment

    You can use option '-e "rsh -l <remote user>'. In such case, you need to set up remote '.rhosts' file, to allow rlogin without providing password from your login and machine.

    Suppose, machine you are running rsync is '', your local user is 'suser' and remote machine is '' and remote user is 'ruser'.

    For remote user, you need to enter line in the ~ruser/.rhosts: suser

    This will allow rlogin from suser without password.

    Then run rsync with -e "rsh -l ruser" and other options you need.

    Another way is providing password in local file and using --password-file=<FILENAME> option.
    Probably there are others :)


    Author Comment

    there i no way to specify the password in the command with user? i was hoping not to have to edit any files like the conf.

    whats the password file method?
    LVL 28

    Expert Comment

    by:Jan Springer
    If you use rsync over ssh and public key authentication, you do not need to provide a password if the SSH daemon on the destination server does not require it.

    This also gives you protection of encrypted file transfers which rsync, by itself, does not.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    This video discusses moving either the default database or any database to a new volume.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now