Skip to content

sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d

License

Notifications You must be signed in to change notification settings

prestist/ssh-key-dir

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.0%
  • Makefile 2.0%