Coder Social home page Coder Social logo

bw-key's Introduction

bw-key

δΈ­ζ–‡

A tool to add the SSH private keys stored in Bitwarden vault to ssh-agent, supporting self-hosted services.

Instruction

I have been using keepassxc before, and the iPhone does not have an open source client, so I switched to bitwarden, which the official clients are cross-platforms. When using keepassxc, there is a very good feature, you can store the ssh private keys in it, and automatically load them into ssh-agent when unlocking the client. After switching to bitwarden, there hasn't this feature, I found an solution at bitwarden-ssh-agent, but it depends on the official bitwarden-cli, and will generate a temporary file locally, although it will be deleted afterwards, but as Patients with obsessive-compulsive disorder feel uncomfortable, and then here is the new solution.

Usage

1. Storing the keys in BitWarden

  1. Create a folder named SSH under the root directory in Bitwarden.
  2. Add an new login-item to that folder.
  3. Upload the private key as an attachment. If the private key has a password, please directly record it in the password of the current login project. The tool will automatically use the password when loading the key.
  4. If you don't want load the private key automatically, please create a Boolean custom field: autoload, and set it to false.
  5. Repeat steps 2-4 to add the remaining private keys.

2.Load the keys.

FLAGS:
--help       Prints help information
-V, --version    Prints version information

OPTIONS:
-h, --host <host>    The URL of the Bitwarden server to use. Defaults to the official server at `https://xxx.bitwarden.com/` if unset.
-m, --method <method>   Optional, The two factor method  to use as the account name when logging into the Bitwarden server,can be one of "auth,email,duo,yubikey,u2f"
-n, --name <name>    The email address to use as the account name when logging into the Bitwarden server. Required.

thanks to :

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.