auto-ssh-agent
This is a small shell script I made to help me manage my ssh-agent(1). My operating system (Mac OS X) doesn’t make it easy to run programs that set environment variables on login, at least in version 10.4. I created this script to help me use ssh-agent without having to use it in a specially started screen(1) session.
To use it, save this file somewhere on your hard drive and add the following to the proper startup files, such as ~/.bashrc and/or ~/.bash_profile (don’t forget the dot at the start of the line.)
1 | . $HOME/path/to/auto-ssh-agent.sh |
This is written for bash, and it’s one of very few that I have written. Suggestions for improvement are very welcome.