ssh-add automatically when you use ssh or friends.
(C) Martin Väth (martin at mvath.de). This project is under the MIT license.
This script acts as a frontend for ssh and friends which asks you for
the passphrase of keys automatically, running
if necessary (but usually only once).
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
sshstart simply copy
bin/* somewhere into your
rsync-wrap, etc. instead of
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
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
For Gentoo, there is an ebuild in the