Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: chrislaurie on July 17, 2009, 05:12:11 PM

Title: affa not working
Post by: chrislaurie on July 17, 2009, 05:12:11 PM
I've configured affa as described in the twiki, but it fails to connect. I get this in the logs:

Fri Jul 17 17:07:28[26632]: Checking SSH connection to 192.168.1.242
Fri Jul 17 17:07:28[26632]: Error 852 in 'main': SSH connection to 192.168.1.242 failed. Did you send the public key?

But I have done the affa --send-key and it shows up in the target server's /root/.ssh/authorized_keys2
Title: Re: affa not working
Post by: janet on July 18, 2009, 04:23:53 PM
chrislaurie

From the server command prompt can you successfully do a
ping 192.168.1.242

Is ssh enabled on the backup server ?
Title: Re: affa not working
Post by: chrislaurie on July 18, 2009, 05:33:25 PM
Yes I can indeed ping the server, I can ping both from the other. I have ssh on for both machines. I use putty to get into them at the command level.

I notice there is an entry in the known_hosts file on the prodserver for my affabox, and that the date time is quite old (I used the set-up a long time ago). Could that be the problem, and if so, how does one 'rebuild' the known_hosts file?

Also key-revoke on the affa box for the prodserver returns an  error.
Title: Re: affa not working
Post by: janet on July 18, 2009, 05:46:35 PM
chrislaurie

Did you upgrade Affa, there was a warning in the wiki about a required fix.
A simple approach to troubleshooting may be to delete the whole job and set it up again, and see if that resolves issues.
Title: Solved!! affa not working
Post by: chrislaurie on July 19, 2009, 08:29:41 AM
The problem was with the known_hosts file. There were entries that had an old host key of the prodserver. Here's what I did:


I think this worked. I would like to add this to the wiki but doe not have editing rights.

Title: Re: Solved!! affa not working
Post by: janet on July 19, 2009, 08:47:09 AM
chrislaurie

Quote
I would like to add this to the wiki but do not have editing rights.

At the top of forums, click on Profile, Modify Profile, Group Membership.
Then alongside the entry for Wiki & Docs Team, click on Request membership