disable password and add pubkey auth to ssh

This commit is contained in:
Alfonso Gamboa 2022-04-21 20:32:27 -07:00
parent 623a715946
commit db4a00a8d3
3 changed files with 3 additions and 13 deletions

Binary file not shown.

View File

@ -68,20 +68,8 @@ else
fi fi
echo "mount configs partition for dropbear"
mount -t jffs2 /dev/mtdblock6 /configs
if [[ -d /configs/.ssh ]]; then
echo "dropbear ssh config dir present"
umount /configs
else
echo "dropbear ssh config dir not present, creating"
mkdir /configs/.ssh
umount /configs
fi
echo "Run dropbear ssh server" echo "Run dropbear ssh server"
/opt/wz_mini/bin/dropbearmulti dropbear -R -m /opt/wz_mini/bin/dropbearmulti dropbear -R -s -g
if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "DEBUG_ENABLED\=") == "DEBUG_ENABLED\=\"true\"" ]]; then if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "DEBUG_ENABLED\=") == "DEBUG_ENABLED\=\"true\"" ]]; then
sed -i '/app_init.sh/,+2d' /opt/wz_mini/tmp/.storage/rcS sed -i '/app_init.sh/,+2d' /opt/wz_mini/tmp/.storage/rcS

View File

@ -0,0 +1,2 @@
#PLACE AUTHORIZED KEYS BELOW