4 'require tools.widgets as widgets';
10 m
= new form
.Map('dropbear', _('SSH Access'), _('Dropbear offers <abbr title="Secure Shell">SSH</abbr> network shell access and an integrated <abbr title="Secure Copy">SCP</abbr> server'));
12 s
= m
.section(form
.TypedSection
, 'dropbear', _('Dropbear Instance'));
15 s
.addbtntitle
= _('Add instance');
17 o
= s
.option(form
.Flag
, 'enable', _('Enable Instance'), _('Enable <abbr title="Secure Shell">SSH</abbr> service instance'));
18 o
.default = o
.enabled
;
20 o
= s
.option(widgets
.NetworkSelect
, 'Interface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
23 o
= s
.option(form
.Value
, 'Port', _('Port'));
27 o
= s
.option(form
.Flag
, 'PasswordAuth', _('Password authentication'), _('Allow <abbr title="Secure Shell">SSH</abbr> password authentication'));
30 o
.default = o
.enabled
;
33 o
= s
.option(form
.Flag
, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the <em>root</em> user to log in with password'));
36 o
.default = o
.enabled
;
38 o
= s
.option(form
.Flag
, 'GatewayPorts', _('Gateway Ports'), _('Allow remote hosts to connect to local SSH forwarded ports'));
41 o
.default = o
.disabled
;