LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-07-2013, 09:46 PM   #1
AndrewD
LQ Newbie
 
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
Problems setting up lsyncd


Let me start by saying that until about a week ago i had never touched a Linux server, so be gentle and spell everything out for me

I have a webiste that i am moving over to cloud servers on rackspace. They will be loadbalanced, so i require that they sync. I understand that there needs to be a master.

servers:- Centos (for reference call them S01 and S02, S01=master, S02=Slave)
AFP firewall installed.
SSH changed to port 8888 in /etc/ssh/sshd_config
root disabled from SSH in /etc/ssh/sshd_config

I then followed instructions from https://community.rackspace.com/products/f/18/t/158
however after step

Next, from the master server, ssh into each slave server. It should ask you if you accept the key. say "yes". It should then just let you in with no password.

It came up with the "yes", but i still had to enter a password.

other wise everything followed (with the exception that i changed the path and server IP in /etc/lsyncd.lua to our details).

now if i look at /var/log/lsyncd/lsyncd.log
i get this

Wed May 8 00:07:58 2013 Normal: recursive startup rsync: /home/mysite/public_html/ -> 10.142.10.11:/home/mysite/public_html/
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
Wed May 8 00:07:59 2013 Error: Temporary or permanent failure on startup of "/home/mysite/public_html/". Terminating since "insist" is not set.



Can anyone give me some direction?
Can i just send the password across as well? and if so, how?


Thanks in advance.
 
Old 05-07-2013, 10:43 PM   #2
AndrewD
LQ Newbie
 
Registered: May 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
I have resolved it.
It seems that for lsyncd you MUST have permitrootlogin allowed in the ssh_config file.


Cheers
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need Help With Lsyncd 2.0 faint545 Linux - Software 1 03-20-2011 03:29 AM
Problems with setting up Name Server markw8500 Linux - General 4 09-12-2005 07:00 PM
Problems setting up ProFTP tjulius Linux - Newbie 6 04-22-2005 11:15 AM
Problems setting up router mheath Linux - Networking 0 12-20-2004 03:54 PM
Problems Setting up SSHD nistelrooy Red Hat 1 11-10-2004 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:04 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
Open Source Consulting | Domain Registration