Skip to content

Instantly share code, notes, and snippets.

@dayne
dayne / 0-ssh-agent_checker_launcher.md
Last active July 4, 2023 11:09
ssh-agent checker/launcher

ssh-agent checker/launcher

about

A bash script for managing ssh-agent that I use for Ubuntu and OSX.

Started as a variation from this classic on Stack Overflow How to check if ssh-agent is already running and then adapted it to align with behaivor I want.

This version does the following:

  • checks for ssh agent forward (remote login) and if so does not setup ssh-agent or any keys