How To Install ssh-key-dir on Fedora 36

In this tutorial we learn how to install ssh-key-dir in Fedora 36. ssh-key-dir is sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d

Introduction

In this tutorial we learn how to install ssh-key-dir on Fedora 36.

What is ssh-key-dir

sshd AuthorizedKeysCommand to read key files from ~/.ssh/authorized_keys.d.

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

Install ssh-key-dir 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 ssh-key-dir using dnf by running the following command:

sudo dnf -y install ssh-key-dir

Install ssh-key-dir 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 ssh-key-dir using yum by running the following command:

sudo yum -y install ssh-key-dir

How To Uninstall ssh-key-dir on Fedora 36

To uninstall only the ssh-key-dir package we can use the following command:

sudo dnf remove ssh-key-dir

ssh-key-dir Package Contents on Fedora 36

/etc/ssh/sshd_config.d/40-ssh-key-dir.conf
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/aa181511ed92b408c9bd98dae4f3811c6f95af
/usr/libexec/ssh-key-dir
/usr/share/doc/ssh-key-dir
/usr/share/doc/ssh-key-dir/README.md
/usr/share/licenses/ssh-key-dir
/usr/share/licenses/ssh-key-dir/LICENSE

References

Summary

In this tutorial we learn how to install ssh-key-dir on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).