https://github.com/victorboissiere/ssh-agent-setup
Helper script to quickly add ssh-agent process persistence to .bashrc and .zshrc
https://github.com/victorboissiere/ssh-agent-setup
bash-script bashrc devops server ssh
Last synced: about 1 year ago
JSON representation
Helper script to quickly add ssh-agent process persistence to .bashrc and .zshrc
- Host: GitHub
- URL: https://github.com/victorboissiere/ssh-agent-setup
- Owner: victorboissiere
- Created: 2018-03-21T20:04:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-06T19:15:28.000Z (about 8 years ago)
- Last Synced: 2025-01-17T09:35:25.386Z (over 1 year ago)
- Topics: bash-script, bashrc, devops, server, ssh
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSH Agent Setup
Small utility script to help you setup ssh-agent process persistence.
Thanks to Wayne Walker for his awesome work!
## How to use
```bash
# Download helper script
wget https://raw.githubusercontent.com/victorboissiere/ssh-agent-setup/master/setup.sh
# Add right permissions
chmod +x setup.sh
# Run setup
./setup.sh
# Delete script
rm setup.sh
```
This will basically add to your `.zshrc` and `.bashrc` files the following:
```bash
. .ssh/ssh-find-agent.sh
ssh-find-agent -a || eval $(ssh-agent) > /dev/null
```
You can learn more on wwalker [project](https://github.com/wwalker/ssh-find-agent).