Преглед изворни кода

disable password and add pubkey auth to ssh

Alfonso Gamboa пре 4 година
родитељ
комит
db4a00a8d3

BIN
SD_ROOT/wz_mini/bin/dropbearmulti


+ 1 - 13
SD_ROOT/wz_mini/etc/init.d/v3_init.sh

@@ -68,20 +68,8 @@ else
 
 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"
-/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
         sed -i '/app_init.sh/,+2d' /opt/wz_mini/tmp/.storage/rcS

+ 2 - 0
SD_ROOT/wz_mini/etc/ssh/authorized_keys

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