LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2010, 05:12 AM   #1
Mugove
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Unhappy Rsync going one way on Fedora 11, 12


hi everyone, i have set two machines (B&C Fedora 12) to rsync to one machine (A fedora 11) which acts as the backup. The two machines have restricted ports except for SSH which is not on a default port though. they all reside on the same local network and I used ssh keys to allow the sync to take place. The keys only work if the backup machine is getting to the two other machines (A--> B&C good) but those machines still prompt for a password to get to A (B&C -->A bad). The key transfer and setup procedure is set to run on root and is exactly the same procedure carried out on all machines.

From comp B
1) ssh-keygen -b 1024 -t rsa -f /home/Leo/.ssh/id_rsa
2) scp /home/leo/.ssh/id_rsa.pub root@192.168.0.AA:/home/leo/.ssh/authorized_keys
3) rsync -r -e ssh /Backup leo@192.168.0.AA:/Backup/Backzip/BBZip
4) password prompt (Not supposed to happen right?)

I have done the same procedure on A and it works if its backing up to B although the point here is B to backup to A with NO PASSWORD prompt because this has to go into a cronjob Directory permissions are set to leo and root, anyhelp?
 
Old 07-22-2010, 06:25 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Are the permissions 0644 for authorized_keys? Also, and likely more importantly, if you are logging in to A as 'root' then it will be looking for /root/.ssh/authorized_keys. You should be able to glean some additional information from 'ssh -v -v -v root@192.168.0.AA' and reviewing for why it fails if the above items are satisfied and it still fails to login using key authentication.
 
Old 07-22-2010, 06:51 AM   #3
Mugove
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
thanks for the quick response
Quote:
if you are logging in to A as 'root' then it will be looking for /root/.ssh/authorized_keys
I had also set up the keys in the root home directory for root, let me check on the permission for authorized keys and will try and extract something from Verbose out put
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync server over SSH on Fedora 12 Lauffray Linux - Newbie 3 02-26-2010 09:08 PM
LXer: Mirror Your Web Site With rsync On Fedora 10 LXer Syndicated Linux News 0 02-06-2009 07:31 PM
not getting the latest packages with rsync from a public fedora repo Yaniv-Fer Linux - General 2 11-05-2008 11:23 AM
rsync fedora <-> mac osx 10.3 Samsara Linux - Networking 3 02-13-2004 04:47 PM


All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration