sss_ssh_authorizedkeys.1.xml revision c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6
558998ce664055a75595371118f818084d8f2b23Jan Cholasta<?xml version="1.0" encoding="UTF-8"?>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta<!DOCTYPE reference PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
558998ce664055a75595371118f818084d8f2b23Jan Cholasta"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
558998ce664055a75595371118f818084d8f2b23Jan Cholasta<reference>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta<title>SSSD Manual pages</title>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta<refentry>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/upstream.xml" />
558998ce664055a75595371118f818084d8f2b23Jan Cholasta
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refmeta>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refentrytitle>sss_ssh_authorizedkeys</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>1</manvolnum>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </refmeta>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refnamediv id='name'>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refname>sss_ssh_authorizedkeys</refname>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refpurpose>get OpenSSH authorized keys</refpurpose>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </refnamediv>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refsynopsisdiv id='synopsis'>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <cmdsynopsis>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <command>sss_ssh_authorizedkeys</command>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <arg choice='opt'>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <replaceable>options</replaceable>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </arg>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <arg choice='plain'><replaceable>USER</replaceable></arg>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </cmdsynopsis>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </refsynopsisdiv>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refsect1 id='description'>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <title>DESCRIPTION</title>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <command>sss_ssh_authorizedkeys</command> acquires SSH
558998ce664055a75595371118f818084d8f2b23Jan Cholasta public keys for user <replaceable>USER</replaceable> and
558998ce664055a75595371118f818084d8f2b23Jan Cholasta outputs them in OpenSSH authorized_keys format (see the
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <quote>AUTHORIZED_KEYS FILE FORMAT</quote> section of
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <citerefentry><refentrytitle>sshd</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>8</manvolnum></citerefentry> for more
558998ce664055a75595371118f818084d8f2b23Jan Cholasta information).
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <citerefentry><refentrytitle>sshd</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>8</manvolnum></citerefentry> can be configured
558998ce664055a75595371118f818084d8f2b23Jan Cholasta to use <command>sss_ssh_authorizedkeys</command> for public
558998ce664055a75595371118f818084d8f2b23Jan Cholasta key user authentication if it is compiled with support for
558998ce664055a75595371118f818084d8f2b23Jan Cholasta either <quote>AuthorizedKeysCommand</quote> or
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <quote>PubkeyAgent</quote> <citerefentry>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refentrytitle>sshd_config</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>5</manvolnum></citerefentry> options.
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta If <quote>AuthorizedKeysCommand</quote> is supported,
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <citerefentry><refentrytitle>sshd</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>8</manvolnum></citerefentry> can be configured to
558998ce664055a75595371118f818084d8f2b23Jan Cholasta use it by putting the following directive in <citerefentry>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refentrytitle>sshd_config</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>5</manvolnum></citerefentry>:
558998ce664055a75595371118f818084d8f2b23Jan Cholasta<programlisting>
558998ce664055a75595371118f818084d8f2b23Jan CholastaAuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys
558998ce664055a75595371118f818084d8f2b23Jan Cholasta</programlisting>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta If <quote>PubkeyAgent</quote> is supported,
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <citerefentry><refentrytitle>sshd</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>8</manvolnum></citerefentry> can be configured to
558998ce664055a75595371118f818084d8f2b23Jan Cholasta use it by using the following directive for <citerefentry>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refentrytitle>sshd</refentrytitle>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <manvolnum>8</manvolnum></citerefentry> configuration:
558998ce664055a75595371118f818084d8f2b23Jan Cholasta<programlisting>
558998ce664055a75595371118f818084d8f2b23Jan CholastaPubKeyAgent /usr/bin/sss_ssh_authorizedkeys %u
558998ce664055a75595371118f818084d8f2b23Jan Cholasta</programlisting>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </refsect1>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <refsect1 id='options'>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <title>OPTIONS</title>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <variablelist remap='IP'>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <varlistentry>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <term>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <option>-d</option>,<option>--domain</option>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <replaceable>DOMAIN</replaceable>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </term>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <listitem>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta Search for user public keys in SSSD domain <replaceable>DOMAIN</replaceable>.
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </para>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </listitem>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </varlistentry>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/param_help.xml" />
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </variablelist>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta </refsect1>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta <refsect1 id='exit_status'>
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta <title>EXIT STATUS</title>
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta <para>
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta In case of success, an exit value of 0 is returned. Otherwise,
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta 1 is returned.
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta </para>
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta </refsect1>
c5ae83788cb6b8681e52c4d940a3fd88e87bd4d6Jan Cholasta
544525ee1fc54d744c08465066e2b4a521f78224Stephen Gallagher <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/seealso.xml" />
544525ee1fc54d744c08465066e2b4a521f78224Stephen Gallagher
558998ce664055a75595371118f818084d8f2b23Jan Cholasta</refentry>
558998ce664055a75595371118f818084d8f2b23Jan Cholasta</reference>