From 7d9c43916b0600ac4879dfe9793eab807a83ab2b Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Mon, 10 Mar 2014 22:45:18 +0200 Subject: rename ACF2 to Alpine Configurator (aconf) --- aconf/modules/openssh.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 aconf/modules/openssh.lua (limited to 'aconf/modules/openssh.lua') diff --git a/aconf/modules/openssh.lua b/aconf/modules/openssh.lua new file mode 100644 index 0000000..5ca2544 --- /dev/null +++ b/aconf/modules/openssh.lua @@ -0,0 +1,28 @@ +--[[ +Copyright (c) 2013 Natanael Copa +Copyright (c) 2013-2014 Kaarle Ritvanen +See LICENSE file for license details +--]] + +local M = require('aconf.model') + +local Sshd = M.service('sshd') +Sshd.root_login = M.Boolean{ + addr='PermitRootLogin', ui_name='Permit root login', default=true +} +Sshd.password_auth = M.Boolean{ + addr='PasswordAuthentication', + ui_name='Password authentication', + default=true +} +Sshd.use_dns = M.Boolean{addr='UseDNS', ui_name='Use DNS', default=true} +Sshd.agent_forward = M.Boolean{ + addr='AllowAgentForwarding', ui_name='Allow agent forwarding', default=true +} + +M.register( + 'sshd', + Sshd, + {addr='/augeas/etc/ssh/sshd_config', ui_name='SSH daemon'} +) +M.permission.defaults('/sshd') -- cgit v1.2.3