|
|
Run ssh-agent and Aqua without additional software
After trying out several of the GUI versions of ssh-agent, I decided to pursue the command line route. Here is a copy of my .login (tcsh) that does the following:
1. checks to see if the ssh-agent sock is up and running - if its not, it starts it.
2. if the sock is there, but the file that holds the PID of ssh-agent is not, it recreates that pidfile
3. sets an env variable if the pidfile is there.
On logout, I have the following script running from a logout hook:
I decided to implement the logout hook as detailed in the 3 part ssh-agent tutorial on this site.
These 2 scripts were also adapted so they could be called up on the command line. The logout can be run exactly as is. The start script was adapted for sh (instead of csh):
This setup is also compatible with ssh-agent -k. While the above mentioned 3 part ssh-agent tutorial on this site is more integrated (the agent sock changes with each startup and is integrated with keychain) as a whole into the OS X experience, my setup is a little more terminal friendly. One does not have to be logged into the GUI for it to work, and one can also start and stop it at will - enabling one to hook into the sleep mechanism using other utilities if desired. Anyway, the main reason I was posting it is because these scripts do work with tcsh and os x and offer another option to the others mentioned.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|