ssh-copy-id dropbear default for openwrt
Carlos Morel Gómez La Roque <[email protected]> Thu, 23 Jul 2026 14:44:30 -0400
| Newsgroups | gmane.network.openssh.devel |
|---|---|
| Message-ID | <CAF=Oy=cUNV99eMJqBdbPLTdfoe31_QnhJ6-fRcGD5Euikr9QVg@mail.gmail.com> |
Hi,
from Termux when ssh-copy-id to owrt with openssh, default behaviour is to
store keys on
/etc/dropbear/authorized_keys
on installkeys_ssh() {} we might add
[ -f /etc/openwrt_release ] &&
{ [ "\$LOGNAME" = "root" ] || [ "\$(id -u)" = "0" ]; } &&
pgrep -x dropbear >/dev/null 2>&1 &&
AUTH_KEY_FILE=/etc/dropbear/authorized_keys;
the third line to check if indeed is dropbear being used on owrt
cheer,
Carulosu.