#openssh #cli #simplifies #ssh-key #public-key

bin+lib keyport

Utility which simplifies working with openssh cli tools

4 releases (breaking)

Uses new Rust 2024

new 0.4.1 Mar 24, 2025
0.4.0 Mar 24, 2025
0.3.1 Mar 23, 2025
0.2.0 Mar 23, 2025
0.1.0 Mar 22, 2025

#609 in Cryptography

40 downloads per month

MIT/Apache

10KB
154 lines

Keyport: A SSH utility program

Simplifies adding and removing SSH keys on UNIX like systems. Requires openssh installed on your system.

Disclaimer

This is a rather hacky solution at the moment, so things might not work as expected.

Installing

Basic usage

Adding an already generated key

$ keyport add <name> # i.e. id_ed25519, id_rsa, ...

Removing an added key

$ keyport remove <name>

Show a public key

$ keyport show <name>

TODOs

  • Show command to show public keys
  • Allow for password protection
  • Support custom editors
  • Key validation (when adding)
  • List command to list active and inactive keys
  • Generating new keys
  • Open temporary files for the keys, validate them and only if everything is fine write them to the ssh directory.

lib.rs:

keyport

Utility crate which simplifies working with openssh cli tools.

Dependencies

~1–1.7MB
~31K SLoC