.\" Man page generated from reStructuredText. . .TH "CDIST-TYPE__SSH_AUTHORIZED_KEY" "7" "Feb 16, 2019" "4.10.6" "cdist" . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH NAME .sp cdist\-type__ssh_authorized_key \- Manage a single ssh authorized key entry .SH DESCRIPTION .sp Manage a single authorized key entry in an authorized_key file. This type was created to be used by the __ssh_authorized_keys type. .SH REQUIRED PARAMETERS .INDENT 0.0 .TP .B file the authorized_keys file to which the given key should be added .TP .B 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. .UNINDENT .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B comment explicit comment instead of the one which may be trailing the given key .TP .B option an option to set for this authorized_key entry. Can be specified multiple times. See sshd(8) for available options. .TP .B state if the given keys should be \(aqpresent\(aq or \(aqabsent\(aq, defaults to \(aqpresent\(aq. .UNINDENT .SH MESSAGES .INDENT 0.0 .TP .B added to \fIfile\fP (\fIentry\fP) The key \fIentry\fP (with optional comment) was added to \fIfile\fP\&. .TP .B removed from \fIfile\fP (\fIentry\fP) The key \fIentry\fP (with optional comment) was removed from \fIfile\fP\&. .UNINDENT .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C __ssh_authorized_key some\-id \e \-\-file "/home/user/.ssh/autorized_keys" \e \-\-key "$(cat ~/.ssh/id_rsa.pub)" __ssh_authorized_key some\-id \e \-\-file "/home/user/.ssh/autorized_keys" \e \-\-key "$(cat ~/.ssh/id_rsa.pub)" \e \-\-option \(aqcommand="/path/to/script"\(aq \e \-\-option \(aqenvironment="FOO=bar"\(aq \e \-\-comment \(aqone to rule them all\(aq .ft P .fi .UNINDENT .UNINDENT .SH SEE ALSO .sp \fBcdist__ssh_authorized_keys\fP(7), \fBsshd\fP(8) .SH AUTHORS .sp Steven Armstrong <\fI\%steven\-cdist\-\-@\-\-armstrong.cc\fP> .SH COPYING .sp 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. .\" Generated by docutils manpage writer. .