Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coreos/ssh-key-dir
sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
https://github.com/coreos/ssh-key-dir
Last synced: about 2 months ago
JSON representation
sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
- Host: GitHub
- URL: https://github.com/coreos/ssh-key-dir
- Owner: coreos
- License: apache-2.0
- Created: 2020-06-11T20:33:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T17:37:23.000Z (3 months ago)
- Last Synced: 2024-07-18T23:39:05.033Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 244 KB
- Stars: 49
- Watchers: 7
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh-key-dir
[![crates.io](https://img.shields.io/crates/v/ssh-key-dir.svg)](https://crates.io/crates/ssh-key-dir)
ssh-key-dir is an sshd [`AuthorizedKeysCommand`](https://man.openbsd.org/sshd_config#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:
```sh
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:
```sh
cargo install ssh-key-dir
```## Build and install from source tree
To build from the source tree:
```sh
make
```To install the binary and `sshd_config.d` fragment to a target rootfs (e.g. under a [coreos-assembler](https://github.com/coreos/coreos-assembler) workdir):
```sh
make install DESTDIR=/my/dest/dir
```