Ajout de la possibilité de trigger le déclenchement de generate par ssh depuis le réseau adm par le groupe adm
This commit is contained in:
parent
be0e7c33df
commit
f0f7def929
8 changed files with 48 additions and 0 deletions
12
Python/var/local/rpcssh/.ssh/authorized_keys
Normal file
12
Python/var/local/rpcssh/.ssh/authorized_keys
Normal file
|
@ -0,0 +1,12 @@
|
|||
# -*- mode: python; encoding: utf-8 -*-
|
||||
|
||||
info["owner"] = "rpcssh"
|
||||
info["group"] = "users"
|
||||
info["perms"] = 0644
|
||||
|
||||
comment_start = "#"
|
||||
|
||||
header("Clef pour lancer des commandes en temps réel sur les serveurs")
|
||||
|
||||
if has("generate"):
|
||||
print '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()
|
Loading…
Add table
Add a link
Reference in a new issue