From 48bd2dee17a7293fe5329534afac31f913dc4b71 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sun, 1 Nov 2015 16:09:36 +0100 Subject: Initial commit --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..a7ba1fd --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +addkey +====== + +A simple set of scripts for facilitating SSH key management. Collectively, the result is to always have a single active instance of ssh-agent across shell instances, with the ability to easily add more keys by name. + +## Installation + +Source `ssh-agent-setup.sh` in your shell's config, and add `addkey` to your path. + +Note that you need to have OpenSSH installed, since this uses `ssh-agent`. + +## Usage + +Assuming that `ssh-agent` is running (which it should be if `ssh-agent-setup.sh` was sourced correctly), use `addkey` to add keys from `~/.ssh` to the agent: + +``` +addkey github +``` + +This will attempt to add `~/.ssh/github` to the agent, prompting for a passphrase if necessary. Optionally: + +``` +addkey github 3600 +``` + +Adds the key with a lifetime of 3600 seconds, or 1 hour. -- cgit v1.2.3