1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2011-2018 Jo-Philipp Wich <jo@mein.io>
3 -- Licensed to the public under the Apache License 2.0.
5 m = Map("dropbear", translate("SSH Access"),
6 translate("Dropbear offers <abbr title=\"Secure Shell\">SSH</abbr> network shell access and an integrated <abbr title=\"Secure Copy\">SCP</abbr> server"))
7 m.apply_on_parse = true
9 s = m:section(TypedSection, "dropbear", translate("Dropbear Instance"))
14 ni = s:option(Value, "Interface", translate("Interface"),
15 translate("Listen only on the given interface or, if unspecified, on all"))
17 ni.template = "cbi/network_netlist"
22 pt = s:option(Value, "Port", translate("Port"),
23 translate("Specifies the listening port of this <em>Dropbear</em> instance"))
29 pa = s:option(Flag, "PasswordAuth", translate("Password authentication"),
30 translate("Allow <abbr title=\"Secure Shell\">SSH</abbr> password authentication"))
34 pa.default = pa.enabled
38 ra = s:option(Flag, "RootPasswordAuth", translate("Allow root logins with password"),
39 translate("Allow the <em>root</em> user to login with password"))
43 ra.default = ra.enabled
46 gp = s:option(Flag, "GatewayPorts", translate("Gateway ports"),
47 translate("Allow remote hosts to connect to local SSH forwarded ports"))
51 gp.default = gp.disabled