ssh-agent

If you have to use a secured SSL connection often (for example when you check-out code repositories or use ssh for your remote server), it can become a little tedious to allways type the password to unlock your private key (I asume here that you actually password-protected your key-file). But there’s the well known ssh-agent which can help here. To make it even easier, just paste this little function into your .zshrc (or your favorite shell config file) and sourceit.


function easy-ssh {
exec ssh-agent zsh
}

Afterwards you can just type easy-ssh in your shell, followed by ssh-add. Type the password once and have fun as long as that shell session is open.

~ by Sascha Peilicke on January 20, 2009.

Leave a Reply