6 releases

0.1.5 Nov 18, 2024
0.1.4 Sep 27, 2022
0.1.3 Jan 19, 2022
0.1.2 Jun 26, 2020

#98 in Authentication

Download history 2/week @ 2024-09-20 17/week @ 2024-09-27 1/week @ 2024-10-04 133/week @ 2024-11-15 19/week @ 2024-11-22 10/week @ 2024-11-29 3/week @ 2024-12-06

165 downloads per month

Apache-2.0

22KB
394 lines

ssh-key-dir

crates.io

ssh-key-dir is an sshd AuthorizedKeysCommand that reads SSH authorized key files from a directory, ~/.ssh/authorized_keys.d. It allows SSH keys to be managed by multiple tools and processes, without competing over ~/.ssh/authorized_keys.

ssh-key-dir reads key files in lexigraphical order, ignoring any filenames starting with a dot.

Installing

Installing on Fedora

ssh-key-dir is packaged in Fedora:

sudo dnf install ssh-key-dir

Installing the package automatically configures sshd to read keys using ssh-key-dir.

Installing with Cargo

You can also install just the ssh-key-dir binary with Rust's Cargo package manager:

cargo install ssh-key-dir

Build and install from source tree

To build from the source tree:

make

To install the binary and sshd_config.d fragment to a target rootfs (e.g. under a coreos-assembler workdir):

make install DESTDIR=/my/dest/dir

Dependencies

~1.5MB
~20K SLoC