1CDIST-TYPE__SSH_AUTHORIZED_KEY(7)    cdist   CDIST-TYPE__SSH_AUTHORIZED_KEY(7)
2
3
4

NAME

6       cdist-type__ssh_authorized_key - Manage a single ssh authorized key en‐
7       try
8

DESCRIPTION

10       Manage a single authorized key entry in an authorized_key  file.   This
11       type was created to be used by the __ssh_authorized_keys type.
12

REQUIRED PARAMETERS

14       file   The authorized_keys file where the given key should be managed.
15
16       key    The ssh key which shall be managed in this authorized_keys file.
17              Must be a string containing the ssh keytype, base 64 encoded key
18              and  optional trailing comment which shall be added to the given
19              authorized_keys file.
20

OPTIONAL PARAMETERS

22       comment
23              Use this comment instead of the one which may be trailing in the
24              key.
25
26       option An  option  to set for this authorized_key entry.  Can be speci‐
27              fied multiple times.  See sshd(8) for available options.
28
29       state  If the managed key should be 'present' or 'absent', defaults  to
30              'present'.
31

MESSAGES

33       added to file (entry)
34              The key entry (with optional comment) was added to file.
35
36       removed from file (entry)
37              The key entry (with optional comment) was removed from file.
38

EXAMPLES

40          __ssh_authorized_key some-id \
41             --file "/home/user/.ssh/autorized_keys" \
42             --key "$(cat ~/.ssh/id_rsa.pub)"
43
44          __ssh_authorized_key some-id \
45             --file "/home/user/.ssh/autorized_keys" \
46             --key "$(cat ~/.ssh/id_rsa.pub)" \
47             --option 'command="/path/to/script"' \
48             --option 'environment="FOO=bar"' \
49             --comment 'one to rule them all'
50

SEE ALSO

52       cdist-type__ssh_authorized_keys(7), sshd(8)
53

AUTHORS

55       Steven Armstrong <steven-cdist--@--armstrong.cc>
56

COPYING

58       Copyright  (C)  2014  Steven  Armstrong. You can redistribute it and/or
59       modify it under the terms of the GNU General  Public  License  as  pub‐
60       lished  by  the  Free  Software Foundation, either version 3 of the Li‐
61       cense, or (at your option) any later version.
62
64       ungleich GmbH 2020
65
66
67
68
696.9.6                            Apr 20, 2021CDIST-TYPE__SSH_AUTHORIZED_KEY(7)
Impressum