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
7       entry
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 to which the given key should be added
15
16       key    a  string  containing  the  ssh keytype, base 64 encoded key and
17              optional trailing comment which shall  be  added  to  the  given
18              authorized_keys file.
19

OPTIONAL PARAMETERS

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

MESSAGES

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

EXAMPLES

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

SEE ALSO

51       cdist__ssh_authorized_keys(7), sshd(8)
52

AUTHORS

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

COPYING

57       Copyright (C) 2014 Steven Armstrong. You  can  redistribute  it  and/or
58       modify  it  under  the  terms of the GNU General Public License as pub‐
59       lished by the  Free  Software  Foundation,  either  version  3  of  the
60       License, or (at your option) any later version.
61
63       ungleich GmbH 2019
64
65
66
67
686.3.0                            Dec 12, 2019CDIST-TYPE__SSH_AUTHORIZED_KEY(7)
Impressum