Fix ssh permissions and move ssh defaults file #19

Merged
PeterSurda merged 1 commits from PeterSurda/openwrt:sshd-fix into main 2023-02-14 07:45:08 +01:00
2 changed files with 3 additions and 1 deletions

View File

@ -51,9 +51,11 @@ echo "CONFIG_TARGET_ROOTFS_EXT4FS=n" >> .config
# Setup files
mkdir -p files/root/.ssh
chmod 0700 files/root files/root/.ssh
cp ${pwd}/authorized_keys files/root/.ssh/
chmod 0400 files/root/.ssh/authorized_keys
mkdir -p files/etc/uci-defaults
cp ${pwd}/uci_defaults files/etc/uci-defaults/99-custom
cp ${pwd}/defaults/* files/etc/uci-defaults
PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
kmod-usb-audio kmod-usb-net-rtl8152 \