[OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

Yousong Zhou yszhou4tech at gmail.com
Mon Jun 25 02:19:06 EDT 2018


On Sat, 23 Jun 2018 at 00:51, Rosen Penev <rosenp at gmail.com> wrote:
>
> On Fri, Jun 22, 2018 at 1:53 AM Yousong Zhou <yszhou4tech at gmail.com> wrote:
> >
> > On Sun, 17 Jun 2018 at 11:07, Rosen Penev <rosenp at gmail.com> wrote:
> > >
> > > If you run opkg install openssh-client and then remove it, the ssh client
> > > symlink that was initially there goes away. This avoids that problem.
> > >
> >
> > opkg's "alternatives" support fits this situation perfectly.  Please
> > take busybox ip and ip-tiny, ip-full as an example.
> >
> Hmm? Dropbear needs to be installed alongside OpenSSH in order to edit
> sshd_config to enable root login.

Sorry, failed to get how this symlink management thing affects root login.

I created a pull request for openssh-client [1] and patches also
dropbear [2] to use the alternatives support in opkg.  The
alternatives support intends to be a general solution to the
preinst/postrm hook or PATH precedence hack.

 [1] https://github.com/openwrt/packages/pull/6344
 [2] https://git.openwrt.org/?p=openwrt/staging/yousong.git;a=shortlog;h=refs/heads/ssh-alt

                yousong

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel



More information about the openwrt-devel mailing list