How To Install openssh-ldap-authkeys on Fedora 36

In this tutorial we learn how to install openssh-ldap-authkeys in Fedora 36. openssh-ldap-authkeys is Python script to generate SSH authorized_keys files using an LDAP directory

Introduction

In this tutorial we learn how to install openssh-ldap-authkeys on Fedora 36.

What is openssh-ldap-authkeys

openssh-ldap-authkeys is an implementation of AuthorizedKeysCommand for OpenSSH 6.9 and newer that allows SSH public keys to be retrieved from an LDAP source. It’s provided for situations where a solution other than 1 With SSH keys stored centrally in LDAP, revocation of a compromised key is a quick and painless exercise for the user or IT department. openssh-ldap-authkeys allows shared accounts to be fully auditable as to who used them.

We can use yum or dnf to install openssh-ldap-authkeys on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install openssh-ldap-authkeys.

Install openssh-ldap-authkeys on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install openssh-ldap-authkeys using dnf by running the following command:

sudo dnf -y install openssh-ldap-authkeys

Install openssh-ldap-authkeys on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install openssh-ldap-authkeys using yum by running the following command:

sudo yum -y install openssh-ldap-authkeys

How To Uninstall openssh-ldap-authkeys on Fedora 36

To uninstall only the openssh-ldap-authkeys package we can use the following command:

sudo dnf remove openssh-ldap-authkeys

openssh-ldap-authkeys Package Contents on Fedora 36

/etc/openssh-ldap-authkeys
/etc/openssh-ldap-authkeys/authmap
/etc/openssh-ldap-authkeys/olak.yml
/usr/bin/openssh-ldap-authkeys
/usr/lib/python3.10/site-packages/ldapauthkeys
/usr/lib/python3.10/site-packages/ldapauthkeys/__init__.py
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/authmap.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/authmap.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/cache.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/cache.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/ldap.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/ldap.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/logging.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/logging.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/renderer.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/renderer.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/resolver.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/resolver.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/ldapauthkeys/authmap.py
/usr/lib/python3.10/site-packages/ldapauthkeys/cache.py
/usr/lib/python3.10/site-packages/ldapauthkeys/config.py
/usr/lib/python3.10/site-packages/ldapauthkeys/ldap.py
/usr/lib/python3.10/site-packages/ldapauthkeys/logging.py
/usr/lib/python3.10/site-packages/ldapauthkeys/renderer.py
/usr/lib/python3.10/site-packages/ldapauthkeys/resolver.py
/usr/lib/python3.10/site-packages/ldapauthkeys/util.py
/usr/lib/python3.10/site-packages/openssh_ldap_authkeys-0.1.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/openssh_ldap_authkeys-0.1.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/openssh_ldap_authkeys-0.1.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/openssh_ldap_authkeys-0.1.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/openssh_ldap_authkeys-0.1.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/openssh_ldap_authkeys-0.1.0-py3.10.egg-info/top_level.txt
/usr/lib/tmpfiles.d/openssh-ldap-authkeys.tmpfiles.conf
/usr/share/doc/openssh-ldap-authkeys
/usr/share/doc/openssh-ldap-authkeys/README.md
/usr/share/doc/openssh-ldap-authkeys/authmap.example
/usr/share/doc/openssh-ldap-authkeys/olak.yml.example
/usr/share/licenses/openssh-ldap-authkeys
/usr/share/licenses/openssh-ldap-authkeys/COPYING

References

Summary

In this tutorial we learn how to install openssh-ldap-authkeys on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).