bashrc & zshrc: SSHGuard and multiple keys are trying to make people crazy.

But what if ssh-add is always told to remove keys, before adding new ones?

By the way, Happy new year 2012 (even if it's only 22:12), because this is my last commit tonight,
unles people at IRC get me to commit something else ;)
This commit is contained in:
Mika Suomalainen 2011-12-31 22:11:01 +02:00
parent 8db4706d45
commit 3793f39c34
2 changed files with 6 additions and 0 deletions

3
bashrc
View File

@ -307,6 +307,9 @@ alias KILL="killall -KILL "
# For locally rsync copying folder1 to folder2.
alias rsync-folder="rsync -azvv "
# SSHGuard seems to prefer users to run this always when connecting with keys in ssh-agent...
alias ssh-add="\ssh-add -D && \ssh-add "
# Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases

3
zshrc
View File

@ -250,6 +250,9 @@ alias KILL="killall -KILL "
# For locally rsync copying folder1 to folder2.
alias rsync-folder="rsync -azvv "
# SSHGuard seems to prefer users to run this always when connecting with keys in ssh-agent...
alias ssh-add="\ssh-add -D && \ssh-add "
# Allow custom aliases to be put in .aliases or .zsh_aliases .
# .aliases