Setting up SSH Agent on Freebsd

The inspiration is from here and the man page for ssh-agent.

Assuming you are using csh/tcsh
1) Add the following to .cshrc — eval `ssh-agent -c`
2) Then everytime you log in run ssh-add to load up your private key
3) when you ssh to the remote machine use “ssh -A” to forward your authentication details over

An alternative is to use ssh-ident from here. All you have to do is modify your .bashrc (or .cshrc or .zshrc) to have:

alias ssh=’/path/to/ssh-ident’

Advertisements

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