ssh-manager

command module
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

SSH Key Manager for Bitwarden and 1Password

logo

Check Coverall Report Doc License

CLI command to automatically unseal Vault

Usage:
  vault-unseal [command]

Available Commands:
  add         Add SSH key to given provider.
  get         Get SSH key from given provider.
  help        Help about any command
  list        List SSH keys from given provider.
  version     Print the version/build number

Flags:
  -h, --help               help for vault-unseal
      --logFormat string   Set the logging format. One of: text|json (default "text") (default "text")
      --logLevel string    Set the logging level. One of: debug|info|warn|error (default "info")

Use "vault-unseal [command] --help" for more information about a command.

Installation

go get -u github.com/omegion/ssh-manager

Requirements

  • Have the Bitwarden CLI tool installed and available in the $PATH as bw.
  • Or have the 1Password CLI tool installed and available in the $PATH as op.
  • Have the ssh-agent running in the current session.

What does it do?

Injects SSL keys to ssh-agent stored in Bitwarden or 1Password.

How to use it

  1. Login to Bitwarden or 1Password with bw or op.
  2. Add your key pairs to your password manager.

For Bitwarden

ssh-manager add --name my-server --private-key $PK_PATH --public-key $PUB_KEY_PATH --provider bw

For 1Password

ssh-manager add --name my-another-server --private-key $PK_PATH --public-key $PUB_KEY_PATH --provider op

Improvements to be made

  • 100% test coverage.
  • Better covering for other features.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
io
provider/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
ssh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL