Unix/Linux Go Back    


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

UNIX for Dummies Questions & Answers


Tags
rsync

 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-13-2012   -   Original Discussion by LAToro
LAToro's Unix or Linux Image
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.
Thanks
Sponsored Links
    #2  
Old Unix and Linux 02-13-2012   -   Original Discussion by LAToro
Corona688's Unix or Linux Image
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 23 February 2018, 5:21 PM EST
Location: Saskatchewan
Posts: 22,615
Thanks: 1,170
Thanked 4,302 Times in 3,969 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

Linux 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 03:15 PM
rsync giessenw SuSE 2 06-08-2011 06:51 PM
rsync volterony Shell Programming and Scripting 3 07-27-2010 06:14 AM
rsync vs cp jsy UNIX for Dummies Questions & Answers 1 03-24-2008 05:51 PM



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