aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: a7ba1fd0f492e176f375e565ad950bca08b2e3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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.