Skip to contentSkip to conversation

dropbear/dropbearkey.service: Allow extra arguments for key generation

PATCH New Mike Looijmans 1 participant 1 message Mar 28, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.b821430b-453c-4cfa-b91c-4663da029c04@emailsignatures365.codetwo.com

#1 lore raw

PATCH 1/1 dropbear/dropbearkey.service: Allow extra arguments for key generation

Just like the "init" version this script, pass $DROPBEAR_RSAKEY_ARGS to the 'dropbearkey' program when generating a host key.

This allows to speed up SSH connections on read-only root systems by adding the line DROPBEAR_RSAKEY_ARGS="-s 1024" into /etc/default/dropbear.

See also: c0efbcb47ab3 ("dropbear/init: Allow extra arguments for key generation")

---
 meta/recipes-core/dropbear/dropbear/dropbearkey.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/dropbear/dropbear/dropbearkey.service +1 -1
index 71a12a6110..501e47124f 100644
@@ -9,6 +9,6 @@ Environment="DROPBEAR_RSAKEY_DIR=/etc/dropbear"
 EnvironmentFile=-/etc/default/dropbear
 Type=oneshot
 ExecStart=@BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR}
-ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key
+ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key $DROPBEAR_RSAKEY_ARGS
 RemainAfterExit=yes
 Nice=10
Signature · 18 lines
2.34.1


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail