Skip to content

Commit

Permalink
dropbear: add missing server key location override
Browse files Browse the repository at this point in the history
The ED25519 variant was missing, resulting in a failure to automatically generate the host key:
```
[15145] Nov 22 17:13:15 Couldn't create new file /etc/dropbear/dropbear_ed25519_host_key.tmp15145: No such file or directory
[15145] Nov 22 17:13:15 Exit before auth from <192.168.0.1:60314>: Couldn't read or generate hostkey /etc/dropbear/dropbear_ed25519_host_key
```
  • Loading branch information
benoit-pierre committed Nov 22, 2024
1 parent fccfa33 commit c756855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions thirdparty/dropbear/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ endif()
set(DSS_PRIV_FILENAME "settings/SSH/dropbear_dss_host_key")
set(RSA_PRIV_FILENAME "settings/SSH/dropbear_rsa_host_key")
set(ECDSA_PRIV_FILENAME "settings/SSH/dropbear_ecdsa_host_key")
set(ED25519_PRIV_FILENAME "settings/SSH/dropbear_ed25519_host_key")

configure_file(localoptions.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/localoptions.h ESCAPE_QUOTES)
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/localoptions.h)
Expand Down
1 change: 1 addition & 0 deletions thirdparty/dropbear/localoptions.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
#cmakedefine DSS_PRIV_FILENAME "@DSS_PRIV_FILENAME@"
#cmakedefine RSA_PRIV_FILENAME "@RSA_PRIV_FILENAME@"
#cmakedefine ECDSA_PRIV_FILENAME "@ECDSA_PRIV_FILENAME@"
#cmakedefine ED25519_PRIV_FILENAME "@ED25519_PRIV_FILENAME@"
// Extra part of the SSH server identification string.
#define IDENT_VERSION_PART "_" DROPBEAR_VERSION " (KOReader)"

0 comments on commit c756855

Please sign in to comment.