Show Password


UNIX for Dummies Questions & Answers

This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Need some help on setting up rsync



Thread Tools Search this Thread Display Modes
Old 02-13-2012
LAToro LAToro is offline
Registered User
Join Date: Feb 2012
Last Activity: 25 April 2012, 4:15 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Need some help on setting up rsync

I need to "sync" a directory from a prod server to a test server. Rsync is working but it prompts for a password and I'd like to automate the process. The directory on the prod/source server is owned by root, and some subdirectories are only readable by root. On the test/destination servers, I can manipulate the permissions as necessary. So, I currently sudo on prod, run rsync from prod to myuserid@test, and enter my password. I tried to setup ssh keys but PermitRootLogin is set to "no" in sshd_config and I could not figure out how to setup the public keys so root (from prod) can connect as myuserid (on test). So my question is: how can I setup rsync to read the files from the source server as root, and sync to my test server as root (or a regular userid) without prompting for a password.
Sponsored Links
Old 02-13-2012
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
Join Date: Aug 2005
Last Activity: 16 July 2018, 2:15 PM EDT
Location: Saskatchewan
Posts: 22,723
Thanks: 1,192
Thanked 4,348 Times in 4,004 Posts
permitroot refers to logins, not the originating user.

How to auto rsync with ssh passwordless - Ubuntu Forums
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
rsync ksh isifer Shell Programming and Scripting 0 07-06-2011 02:15 PM
rsync giessenw SuSE 2 06-08-2011 05:51 PM
rsync volterony Shell Programming and Scripting 3 07-27-2010 05:14 AM
rsync vs cp jsy UNIX for Dummies Questions & Answers 1 03-24-2008 04:51 PM

All times are GMT -4. The time now is 02:27 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.