top | item 35809814

SSH-AGENT-KEEPALIVE – A bash_profile mod that cacches agent env for reuse

4 points| ogsuspect | 2 years ago |github.com

5 comments

order

ogsuspect|2 years ago

I am a die-hard iterm + tmux user and often have many login shells open spread across many iterm windows/tabs, tmux sessions/windows/panes, etc.

I was tired of dealing with the pain of ssh-agent so I wrote some bash scripting that caches the agent environment, kills any extra uncached agents and automatically "attaches" to the cached environment so you don't have to type your ssh key passphrases in over and over.

Feel free to contribute, also feel free to talk trash :)

runnerup|2 years ago

Curious if this could work to minimize 2FA authentications for repeated short SSH sessions? Particularly ssh commands run by 3rd party software such as Sourcetree. Every new connection requires acknowledgement of 2FA push notification.

runnerup|2 years ago

Curious if this could work to minimize 2FA authentications for repeated short SSH sessions? Particularly ssh commands run by 3rd party software such as Sourcetree.