Try to replace dropbear by openssh-server using imagebuilder #9

Merged
PeterSurda merged 2 commits from lee.miller/openwrt:openssh into main 2023-02-09 10:02:20 +01:00
2 changed files with 19 additions and 1 deletions

View File

@ -47,6 +47,15 @@ make info
# Double the size of the root partition # Double the size of the root partition
echo "CONFIG_TARGET_ROOTFS_PARTSIZE=208" >> .config echo "CONFIG_TARGET_ROOTFS_PARTSIZE=208" >> .config
# Setup files
mkdir -p files/root/.ssh
cp ${pwd}/authorized_keys files/root/.ssh/
mkdir -p files/etc/uci-defaults
cat << "EOF" > files/etc/uci-defaults/99-custom
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
/sbin/service sshd restart
EOF
PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \ PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
kmod-usb-audio kmod-usb-net-rtl8152 \ kmod-usb-audio kmod-usb-net-rtl8152 \
alsa-lib pciutils usbutils \ alsa-lib pciutils usbutils \
@ -81,9 +90,11 @@ PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
luci-ssl-nginx luci-app-acme \ luci-ssl-nginx luci-app-acme \
python3-packages python3-yaml \ python3-packages python3-yaml \
wireguard-tools wget-ssl \ wireguard-tools wget-ssl \
openssh-server \
" "
make image PROFILE=rpi-4 PACKAGES="${PACKAGES}" make image PROFILE=rpi-4 \
PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files"
make manifest PROFILE=rpi-4 PACKAGES="${PACKAGES}" make manifest PROFILE=rpi-4 PACKAGES="${PACKAGES}"

7
authorized_keys Normal file
View File

@ -0,0 +1,7 @@
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBI8QxHD/hCeA/8VY0qkQEh5LNedXMDR7o+qJ0KlsstqebtN/Egwto37arI0x/GRDD0QRSzpgm2AVsTeDGOV1AAw= ssh_token@mireille
ssh-rsa AAAAB3NzaC1yc2EAAAADA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