mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 14:57:19 +00:00
disable password and add pubkey auth to ssh
This commit is contained in:
parent
623a715946
commit
db4a00a8d3
Binary file not shown.
@ -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
SD_ROOT/wz_mini/etc/ssh/authorized_keys
Normal file
2
SD_ROOT/wz_mini/etc/ssh/authorized_keys
Normal file
@ -0,0 +1,2 @@
|
||||
#PLACE AUTHORIZED KEYS BELOW
|
||||
|
Loading…
Reference in New Issue
Block a user