Skip to content

Parse and transform OpenSSH `authorized_keys` files

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

hubauth/authorized_keys

authorized_keys-rs

Parse and manipulate OpenSSH authorized_keys files.

Linting Status Test Suite Status Crates.io

Contributing | Code of Conduct | Changelog | Examples

Installation

Cargo.toml:

[dependencies]
authorized_keys = "1.0"

Features

  • Parse authorized_keys files
  • Parse individual lines from authorized_keys files
  • Change the parts of a line (options, key type, encoded key, comments) with convenience methods
  • Write authorized_keys files in the correct format
  • One dependency by default (nom)
    • Depends on data-encoding if you want to edit key data as bytes using convenience methods
  • Minimum rust version 1.34.2 (supports Debian Buster)

Authors

License

authorized_keys is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.