How to disable ssh-agent in Snow Leopard?

Bad surprise in Snow Leopard is for me ssh-agent. ssh-agent is automatically launched every time you use ssh to connect somewhere. And it is launched with no timeout I mean. I don't like this.

How to disable ssh-agent? Or how to configure ssh-agent to shorten its timeout?

MacBook white 2,16 Ghz, Mac OS X (10.6)

Posted on Aug 30, 2009 11:59 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Aug 30, 2009 1:21 PM

it looks like it is started by Launchd, from the following file.

/System/Library/LaunchAgentsorg.openbsd.ssh-agent.plist

but that is under 10.5.8. It may very well be started from the same
file under 10.6.
6 replies
Sort By: 

Aug 30, 2009 2:17 PM in response to Nils C. Anderson

Your solution doesn't work. But I have mine.
I cannot disable ssh-agent. But I know how to set timeout to ssh-agent. I added one argument to ProgramArguments.


<key>ProgramArguments</key>
 <array>
 <string>/usr/bin/ssh-agent</string>
 <string>-l</string>
 <string>-t 60</string>
 </array>


Timeout is now one minute. Then it needs restart.
Reply

Aug 30, 2009 2:30 PM in response to snilard

Did that work?

It might, but technically it's not the correct format for specifying such a parameter.

ProgramArguments need to be specified individually, including the values for switches.

Therefore, instead of:

<string>-t 60</string>


you should put:

<string>-t</string>
<string>60</string>
Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to disable ssh-agent in Snow Leopard?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.