initial
This commit is contained in:
30
sysconfig.toml
Normal file
30
sysconfig.toml
Normal file
@@ -0,0 +1,30 @@
|
||||
[ general ]
|
||||
packages = [
|
||||
"openssh-server",
|
||||
]
|
||||
|
||||
[ users.dmitry ]
|
||||
password = "1234"
|
||||
pubkeys = [
|
||||
"the key",
|
||||
"the second key",
|
||||
]
|
||||
|
||||
[ users.nadia ]
|
||||
password = "2345"
|
||||
pubkeys = [
|
||||
"the key2",
|
||||
]
|
||||
|
||||
[groups.sftp-users]
|
||||
users = ["dmitry"]
|
||||
|
||||
[configs."/etc/ssh/sshd_config.d/sftp.conf"]
|
||||
body = """
|
||||
Match group sftp-users
|
||||
ChrootDirectory /chroot
|
||||
ForceCommand internal-sftp
|
||||
AllowTcpForwarding no
|
||||
"""
|
||||
permissions = 644
|
||||
owner = "root:root"
|
||||
Reference in New Issue
Block a user