https://github.com/vaeth/sshstart
Start ssh-agent/ssh-add only if you really use ssh or friends
https://github.com/vaeth/sshstart
keychain ssh ssh-agent wrapper
Last synced: 9 months ago
JSON representation
Start ssh-agent/ssh-add only if you really use ssh or friends
- Host: GitHub
- URL: https://github.com/vaeth/sshstart
- Owner: vaeth
- Created: 2012-02-13T16:43:07.000Z (about 14 years ago)
- Default Branch: main
- Last Pushed: 2021-06-13T11:08:07.000Z (almost 5 years ago)
- Last Synced: 2024-06-11T00:48:47.205Z (almost 2 years ago)
- Topics: keychain, ssh, ssh-agent, wrapper
- Language: Shell
- Homepage: http://www.mathematik.uni-wuerzburg.de/~vaeth/download/index.html#sshstart
- Size: 42 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sshstart
Start `gpg-agent`/`ssh-add` automatically when you use __ssh__ or friends.
(C) Martin Väth (martin at mvath.de).
This project is under the MIT license.
SPDX-License-Identifier: MIT
This script acts as a frontend for __ssh__ and friends which asks you for
the passphrase of keys automatically, running `gpg-agent` and `ssh-add`
if necessary (but usually only once).
## New project
Version 4.0 is a ***ground-up rewrite*** with different internals and usage.
For instance, instead of being based on the keychain script, this project now
completely relies on gpg-agent's functionality to replace ssh-agent.
Also the way it is supposed to be called has completely been thought over.
## Installation and Usage
To install `sshstart` simply copy `bin/*` somewhere into your `$PATH`
and use `ssh-wrap`, `rsync-wrap`, etc. instead of `ssh`, `rsync`, etc.
In order to set correct environment variables for non-wrapped commands, put
```
unset SSH_AGENT_PID
eval "`sshstart -e`"
```
in your shell startup file. It might also be convenient to put e.g.
```
alias ssh='ssh-wrap --'
alias rsync='rsync-wrap --'
...
```
in your shell startup file to let 'ssh' ask for your keys only once.
To get more help run `sshstart -h`.
For __zsh completion__ support also copy 'zsh/*` into a directory of
your zsh's `$fpath`.
You may also need `push.sh` from https://github.com/vaeth/push in your `$PATH`.
For Gentoo, there is an ebuild in the `mv` repository
(available by `app-select/eselect-repository` or `app-portage/layman`).