wok-next rev 21605
dropbear: add ed25519 key
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 25 08:01:52 2020 +0000 (2020-06-25) |
parents | 1de0c8432a20 |
children | 44f4d94eb05b |
files | dropbear/receipt |
line diff
1.1 --- a/dropbear/receipt Wed Jun 24 15:30:47 2020 +0100 1.2 +++ b/dropbear/receipt Thu Jun 25 08:01:52 2020 +0000 1.3 @@ -21,6 +21,10 @@ 1.4 sed -iold -e 's|/usr/.*/xauth|/usr/bin/xauth|' \ 1.5 -e 's|ENABLE_SVR_PAM_AUTH|ENABLE_SVR_PASSWORD_AUTH|' \ 1.6 options.h 1.7 + cat > localoptions.h <<EOT 1.8 +#define SFTPSERVER_PATH "/usr/sbin/sftp-server" 1.9 +#define DROPBEAR_X11FWD 1 1.10 +EOT 1.11 1.12 ./configure \ 1.13 --prefix=/usr \ 1.14 @@ -55,7 +59,8 @@ 1.15 ln -s sshx $install/usr/bin/sshfbvnc 1.16 touch $install/etc/dropbear/dropbear_dss_host_key \ 1.17 $install/etc/dropbear/dropbear_rsa_host_key \ 1.18 - $install/etc/dropbear/dropbear_ecdsa_host_key 1.19 + $install/etc/dropbear/dropbear_ecdsa_host_key \ 1.20 + $install/etc/dropbear/dropbear_ed25519_host_key 1.21 1.22 # PAM 1.23 cp -a $stuff/pam.d $install/etc 1.24 @@ -63,7 +68,7 @@ 1.25 # Fix dropbear initscript permissions 1.26 chown -R root:root $install 1.27 1.28 - ln -s daemon $install/etc/init.d/sshd 1.29 + ln -s dropbear $install/etc/init.d/sshd 1.30 } 1.31 1.32 genpkg_rules() 1.33 @@ -99,6 +104,7 @@ 1.34 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 1.35 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 1.36 /etc/dropbear/dropbear_ecdsa_host_key /etc/ssh/ssh_host_ecdsa_key 1.37 +/etc/dropbear/dropbear_ed25519_host_key /etc/ssh/ssh_host_ed25519_key 1.38 EOT 1.39 grep -q ssh "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT 1.40 #ssh stream tcp nowait root dropbear dropbear -i -b /etc/dropbear/banner