net/rdist6 cannot use ssh as rcmd: # rdist6 -P /usr/bin/ssh -f Distfile server.komi.mts.ru: updating host server.komi.mts.ru rshd: Login incorrect. Fix: remove from files/patch-ag: -#define _PATH_REMSH "/usr/bin/rsh" /**/ +#define _PATH_REMSH "/usr/bin/ssh" /**/ or change files/patch-ae: -desc = rcmd(&rhost, port, luser, ruser, cmd, 0); +desc = rshrcmd(&rhost, port, luser, ruser, cmd, 0); How-To-Repeat: install net/rdist6 create Distfile: Conf = (/etc/rc.conf) ConfHosts = (server) all: ${Conf} -> ( ${ConfHosts} ) run rdist6 as root: # rdist6 -P /usr/bin/ssh -f Distfile
Responsible Changed From-To: freebsd-ports-bugs->mi Default to ssh was my work...
Hi, I have the same issue. It only affects rdist running as root. For normal users it uses the SSH transport just fine. It is kind of humorous that it reverts back to rsh for root, actually... I have tried the second of the two fixes changing the rcmd() call to rshrcmd() and it has solved the problem for me. Please commit this to the port. Thanks!
> It is kind of humorous that it reverts back to rsh for root, actually... Yes, it is... I was hoping, there'd be some secure alternative like scmd someday. > I have tried the second of the two fixes changing the rcmd() call to > rshrcmd() and it has solved the problem for me. > > Please commit this to the port. Thanks! Yes, I will. It took too long already. Sorry, -mi
Actually, the best fix is to just remove the patch-ae entirely. Does that work for you, guys? -mi
Mikhail Teterin wrote: > Actually, the best fix is to just remove the patch-ae entirely. Does that work > for you, guys? Work fine for me. Thanks! -- Alex Deiter
State Changed From-To: open->feedback Try to rescue this aging PR.
Responsible Changed From-To: mi->linimon To submitter: is this ancient PR still relevant?
State Changed From-To: feedback->closed Submitter's email address bounces.