keyport

Crates.iokeyport
lib.rskeyport
version0.5.0
created_at2025-03-22 18:08:55.53206+00
updated_at2025-03-25 15:31:31.812588+00
descriptionUtility which simplifies working with openssh cli tools
homepage
repositoryhttps://github.com/ruarq/keyport.git
max_upload_size
id1601994
size24,417
ruarq (ruarq)

documentation

README

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

When specifying only the name of a key, keyport will assume you mean a key in ~/.ssh/.

  • keyport show id_rsa will show the key ~/.ssh/id_rsa.pub
  • keyport remove ./my_key will remove the my_key key in the current directory.
  • keyport add /path/to/key will let you add the key at the specified path.

Adding an already generated key

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

Removing an added key

$ keyport remove <FILE>

Show a public key

$ keyport show <FILE>

Set the password of a key

$ keyport set-password <FILE>

TODOs

  • Show command to show public keys
  • Allow for password protection
  • Support custom editors
  • 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.
    • Writing keys to temporary files first.
    • Key validation (when adding)
  • Improve the error handling
Commit count: 0

cargo fmt