blob: c79afd40740c2c1d9180406cb0c59344cc9585a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--[[
Copyright (c) 2013 Natanael Copa <ncopa@alpinelinux.org>
Copyright (c) 2013 Kaarle Ritvanen
See LICENSE file for license details
--]]
local M = require('acf2.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')
|