Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
341 stars 52 forks source link

Add option to disable WAN access with password only (and entry to save authorized keys) #1012

Open 3v1n0 opened 3 years ago

3v1n0 commented 3 years ago

Device Model: DGA4132

Accessing from WAN using password is at least discouraged, as per this, would be nice to have an option that:

To disable password access what I'm doing currently is just:

cat disable-root-acess.sh 
cp .ssh/authorized_keys /etc/dropbear/ -v
uci set dropbear.lan.RootPasswordAuth=0
uci set dropbear.public_lan.RootPasswordAuth=0
uci set dropbear.wan.RootPasswordAuth=0
uci set dropbear.lan.PasswordAuth=0
uci set dropbear.public_lan.PasswordAuth=0
uci set dropbear.wan.PasswordAuth=0
uci commit