{"id":17109676,"url":"https://github.com/msimerson/ssh-agent","last_synced_at":"2025-04-13T03:21:50.378Z","repository":{"id":11796476,"uuid":"14341061","full_name":"msimerson/ssh-agent","owner":"msimerson","description":"A shell script that loads ssh-agent and keys into each terminal session of a workstation","archived":false,"fork":false,"pushed_at":"2021-03-23T17:10:58.000Z","size":16,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T20:21:23.118Z","etag":null,"topics":["bash","macosx","shell","ssh-agent","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msimerson.png","metadata":{"files":{"readme":"README.md","changelog":"Changes.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-12T18:23:41.000Z","updated_at":"2024-02-01T04:23:47.000Z","dependencies_parsed_at":"2022-09-19T09:00:35.539Z","dependency_job_id":null,"html_url":"https://github.com/msimerson/ssh-agent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msimerson%2Fssh-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msimerson%2Fssh-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msimerson%2Fssh-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msimerson%2Fssh-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msimerson","download_url":"https://codeload.github.com/msimerson/ssh-agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248658375,"owners_count":21140931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","macosx","shell","ssh-agent","zsh"],"created_at":"2024-10-14T16:24:01.599Z","updated_at":"2025-04-13T03:21:50.358Z","avatar_url":"https://github.com/msimerson.png","language":"Shell","readme":"# ssh-agent\n\nA shell script that autoloads the ssh-agent and keys into each terminal session\nof a workstation, significantly reducing the complexity of using ssh-agent.\n\nUsed and tested on Mac OS X, FreeBSD, and Linux computers. Should work on any\nUNIXy host with OpenSSH installed.\n\n# INSTALL\n\n## 1. Install to $HOME/.ssh directory as agent.sh\n\n```sh\ncurl -L -o ~/.ssh/agent.sh https://github.com/msimerson/ssh-agent/raw/master/agent.sh\nchmod 755 ~/.ssh/agent.sh\n```\n\n## 2. Run it when new terminal windows open\n\n### bash\n\n```sh\necho 'source .ssh/agent.sh' \u003e\u003e ~/.bash\\_profile\n```\n\n### zsh\n\n```sh\necho '.ssh/agent.sh' \u003e\u003e ~/.zprofile\n```\n\n## 3. Open new terminal/shell sessions\n\n## 4. Enjoy\n\n\n# SSH-AGENT SOCKET\n\nSetting \\_sockfile is an efficiency improvement. Rather than storing the\nssh socket file in /tmp/ssh-XXXXXXXXXX/agent.\u003cppid\u003e and having to glob\nto find it, we can store it in a fixed location so this script can find\nit more efficiently. Since all our shell/terminal windows will share the\nfirst ssh-agent process, there is no need for the random location.\n\nIf you decide to alter the location, keep security in mind. You do not want\nothers to have access to this socket. Your ~/.ssh directory is a great\nchoice because its default permissions (600) are readable only by you.\n\nIf you wish to keep the default /tmp behavior, comment out the \\_sockfile setting.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsimerson%2Fssh-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsimerson%2Fssh-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsimerson%2Fssh-agent/lists"}