In your working example you are connecting as root but in your dsync example your user is remoteprefix:root. Try removing the "remoteprefix:" which is being treated as part of the user name.
-----Original Message----- From: Kent Borg via dovecot <dovecot@dovecot.org> Sent: Thursday, January 23, 2025 3:34 PM To: cdm567@yahoo.com; 'Kent Borg' <kentborg-dovecot@borg.org>; dovecot@dovecot.org Subject: Re: newbie dsync problems
On 1/23/25 12:26 PM, cdm567@yahoo.com wrote:
Kent,
You are being prompted for a password, so it isn't using private key authentication. I recommend you get ssh working first, prove you are indeed connecting to your secondary server, and only then introduce doveadm.
Yes, I checked that:
I think I have root's ssh keys set up correctly, I can run this:
root@la:/etc/dovecot# ssh -i /root/.ssh/id_rsa_rc.borg.org.dsync mail.borg.org PTY allocation request failed on channel 0 C-c C-croot@la:/etc/dovecot# …and on the remote end I see some debugging output I put in the remote script, outputting an empty username. Makes sense.
Is mail.borg.org the name of your "matching server" or is that the name of your primary server?
mail.borg.org is the name of the (priority 10) backup, I am running this on my (priority 1) primary server, mail2.borg.org, I am pretty certain I am not ssh-ing to myself.
kb
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org