Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd April 2009, 15:51
edpatterson edpatterson is offline
Junior Member
 
Join Date: Feb 2009
Location: Florida, USA
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default mirroring with rsync (mulitple servers)

The tutorial worked just fine for a single server. Then I attempted to add another by generating a key, copying it to the source server and appending it to the authorized_keys file. I duplicated everything only changing the hostname of the target machine.
Now when I try to sync I get a message that smartcards are not supported and am prompted for the password. Entering the password on the original machine works, from the second one fails.

I have 14 squid servers and am looking for a way to sync the url lists. I thought rsync would be a nice lightweight (easy on the brain) way to do it.

Ideas on what I did wrong or possibly a better/easier way?

Thanks,
Ed
Reply With Quote
Sponsored Links
  #2  
Old 3rd April 2009, 12:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Does it work if you remove the "command="/home/someuser/rsync/checkrsync",from="mirror.example.com",no-port-forwarding,no-X11-forwarding,no-pty" part from all lines in authorized_keys?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd April 2009, 15:52
edpatterson edpatterson is offline
Junior Member
 
Join Date: Feb 2009
Location: Florida, USA
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

No, I deleted everything up to ssh-dss. It still reports no support for smartcards and requests the password.
Reply With Quote
  #4  
Old 4th April 2009, 13:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

What's your rsync command?

Also, did you compare your setup with the tutorial? Maybe you've made a typo somewhere?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th April 2009, 15:23
edpatterson edpatterson is offline
Junior Member
 
Join Date: Feb 2009
Location: Florida, USA
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

It worked fine when I first did the tutorial. Then I attempted to add another machine a week or so and a bunch of successful sync's later. That is when the problem started.
Here is what I did to break it.
Built another server
Created a ssh key-pair (ssh-keygen -t dsa -b 1024 -f /root/rsync/server3-rsync-key)
Copied the server3-rsync-key.pub to server1:/home/rsyncer/.ssh/
Added the key to the existing authorized_keys file (cat server3-rsync-key.pub >> authorized_keys)
Prepended 'command="/home/rsyncer/rsync/checkrsync", from="server3", no-port-forwarding,no-X11-forwarding,no-pty'
Then from server3
rsync -avz -e "ssh -I /root/rsync/server3/rsync/server3-rsync-key" rsyncer@server1:/tmp/sync-test
The smartcard error and prompt for password, no files transfered.
I am thinking that maybe you can not have more than one line in the authorized_keys file. But then that would make it authorized_key.
I will try to look up more info on ssh. It seemed to me like it would work.
Reply With Quote
  #6  
Old 5th April 2009, 14:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by edpatterson View Post
I am thinking that maybe you can not have more than one line in the authorized_keys file.
No, that's not true. You can have more than one line in that file. I'm using rsync mirroring with multiple servers at the same time.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52
Mirroring Website with Rsync hockeypfef HOWTO-Related Questions 1 9th March 2007 17:33
Mirroring Website with Rsync vibranze HOWTO-Related Questions 2 3rd February 2007 03:24
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17


All times are GMT +2. The time now is 00:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.