12 lines
478 B
Python
12 lines
478 B
Python
# -*- mode: python; encoding: utf-8 -*-
|
|
|
|
info["owner"] = "rpcssh"
|
|
info["group"] = "users"
|
|
info["mode"] = 0644
|
|
|
|
comment_start = "#"
|
|
|
|
header("Clef pour lancer des commandes en temps réel sur les serveurs")
|
|
|
|
if has("generate"):
|
|
_out('command="sudo /usr/scripts/gestion/gen_confs/generate.py",from="10.231.136.0/24,2a01:240:fe3d:c804::/64",no-agent-forwarding,no-port-forwarding,no-pty,no-user-rc,no-X11-forwarding %s' % open('/etc/crans/secrets/trigger-generate.pub').read())
|