Skip to content

Commit 01aae06

Browse files
committed
Generate ecdsa and ed25519 ssh hostkeys
1 parent 2b99c71 commit 01aae06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

System/scripts/networkHelpers.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ setup_syncthing() {
4040
setup_dropbear() {
4141
[ ! -d "$DROPBEAR_KEY_DIR" ] && mkdir -p "$DROPBEAR_KEY_DIR"
4242
[ ! -f "$DROPBEAR_KEY_DIR/dropbear_rsa_host_key" ] && /mnt/SDCARD/System/bin/dropbearmulti dropbearkey -t rsa -f "$DROPBEAR_KEY_DIR/dropbear_rsa_host_key"
43-
[ ! -f "$DROPBEAR_KEY_DIR/dropbear_dss_host_key" ] && /mnt/SDCARD/System/bin/dropbearmulti dropbearkey -t dss -f "$DROPBEAR_KEY_DIR/dropbear_dss_host_key"
43+
[ ! -f "$DROPBEAR_KEY_DIR/dropbear_ecdsa_host_key" ] && /mnt/SDCARD/System/bin/dropbearmulti dropbearkey -t ecdsa -f "$DROPBEAR_KEY_DIR/dropbear_ecdsa_host_key"
44+
[ ! -f "$DROPBEAR_KEY_DIR/dropbear_ed25519_host_key" ] && /mnt/SDCARD/System/bin/dropbearmulti dropbearkey -t ed25519 -f "$DROPBEAR_KEY_DIR/dropbear_ed25519_host_key"
4445
[ "$(awk -F ":" '/root/ {print $2}' "/etc/shadow")" = "!" ] && echo -e "quark\nquark" | passwd root # set default root password
4546
}
4647

@@ -73,7 +74,8 @@ start_dropbear_process() {
7374
if ! pgrep dropbearmulti >/dev/null 2>&1; then
7475
/mnt/SDCARD/System/bin/dropbearmulti dropbear \
7576
-r "$DROPBEAR_KEY_DIR/dropbear_rsa_host_key" \
76-
-r "$DROPBEAR_KEY_DIR/dropbear_dss_host_key" \
77+
-r "$DROPBEAR_KEY_DIR/dropbear_ecdsa_host_key" \
78+
-r "$DROPBEAR_KEY_DIR/dropbear_ed25519_host_key" \
7779
-c "/mnt/SDCARD/System/scripts/ssh_wrapper.sh"
7880
fi
7981
}

0 commit comments

Comments
 (0)