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.

One thought on “ssh-agent

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s