cdist/cdist/conf/type/__ssh_authorized_key/man.rst

72 lines
1.7 KiB
ReStructuredText
Raw Normal View History

cdist-type__ssh_authorized_key(7)
=================================
NAME
----
cdist-type__ssh_authorized_key - Manage a single ssh authorized key entry
DESCRIPTION
-----------
Manage a single authorized key entry in an authorized_key file.
This type was created to be used by the __ssh_authorized_keys type.
REQUIRED PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
file
the authorized_keys file to which the given key should be added
2016-05-20 06:50:56 +00:00
key
a string containing the ssh keytype, base 64 encoded key and optional
trailing comment which shall be added to the given authorized_keys file.
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
comment
explicit comment instead of the one which may be trailing the given key
2016-05-20 06:50:56 +00:00
option
an option to set for this authorized_key entry.
Can be specified multiple times.
See sshd(8) for available options.
2016-05-20 06:50:56 +00:00
state
if the given keys should be 'present' or 'absent', defaults to 'present'.
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
__ssh_authorized_key some-id \
--file "/home/user/.ssh/autorized_keys" \
--key "$(cat ~/.ssh/id_rsa.pub)"
2016-05-20 06:50:56 +00:00
__ssh_authorized_key some-id \
--file "/home/user/.ssh/autorized_keys" \
--key "$(cat ~/.ssh/id_rsa.pub)" \
--option 'command="/path/to/script"' \
--option 'environment="FOO=bar"' \
--comment 'one to rule them all'
SEE ALSO
--------
2016-06-30 13:12:32 +00:00
:strong:`cdist__ssh_authorized_keys`\ (7), :strong:`sshd`\ (8)
AUTHORS
-------
Steven Armstrong <steven-cdist--@--armstrong.cc>
COPYING
-------
2016-08-10 16:15:54 +00:00
Copyright \(C) 2014 Steven Armstrong. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.