diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js
index 24ed804413cc..45b9994cc6f3 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js
@@ -15,7 +15,7 @@ return view.extend({
s.addbtntitle = _('Add instance');
o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable SSH service instance'));
- o.default = true;
+ o.default = o.enabled;
o = s.option(widgets.NetworkSelect, 'Interface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
o.nocreate = true;
@@ -25,13 +25,20 @@ return view.extend({
o.placeholder = 22;
o = s.option(form.Flag, 'PasswordAuth', _('Password authentication'), _('Allow SSH password authentication'));
- o.default = true;
+ o.enabled = 'on';
+ o.disabled = 'off';
+ o.default = o.enabled;
o.rmempty = false;
o = s.option(form.Flag, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the root user to log in with password'));
- o.default = true;
+ o.enabled = 'on';
+ o.disabled = 'off';
+ o.default = o.enabled;
o = s.option(form.Flag, 'GatewayPorts', _('Gateway Ports'), _('Allow remote hosts to connect to local SSH forwarded ports'));
+ o.enabled = 'on';
+ o.disabled = 'off';
+ o.default = o.disabled;
return m.render();
}