![]() ![]() Then ssh-agent will get started next time you login by launchd, or you can start it immediately by running: $ chmod +x /Users/ username/.ssh/ssh-agent.sh Note: ssh-agent has to be started using -d option as launchd doesn't like processes to fork off into 'daemons'.probably why a few people don't like it. Then create a file /Users/ username/.ssh/ssh-agent.sh containing:Įxec /usr/bin/ssh-agent -a /Users/ username/.ssh/ssh-agent.pipe -d Create file /Users/ username/Library/LaunchAgents/ist containing: However it can be done using launchd and a bit of scripting.īefore you start you'll need to have an /Users/ username/.ssh directory (where username is your username) - or alter the scripts appropriately below. It seems irritating that OSX doesn't have an easy way to get ssh-agent running for a login session.
0 Comments
Leave a Reply. |