Hi Misc,

I got inspired by this answer 

https://marc.info/?l=openbsd-misc&m=156405651502000&w=2

and decided to try to use rdist to sync few files on bunch of my OpenBSD
servers. Everything works as advertised

https://man.openbsd.org/rdist

with caveats.

I noticed that having a space between -o and remove instead of 

install -oremove,chknfs ;

per example in the man pages causes files not to sync. That is of course
not a big deal but it seems undocumented.

However when calling rdist from a command line 

rdist -D 

with an existing /etc/Distfile I noticed that my private ssh key from 

/root/.ssh/

was not read unless it was named id_rsa. I did call rdist -D as a root
and I have a valid working and well tested  

/root/.ssh/config 

file. To make matters worse if the destination host sshd listens on a
non-default port I don't see the way to specify port to be used by rdist
when calling ssh. I don't see anything in log files. Is there anything I
can do short of reading rdist code to understand how to force rdist to
read a ssh config file. I am guessing I could play with /etc/ssh/* files
on the local and destination hosts. 

Most Kind Regards,
Predrag Punosevac

Reply via email to