Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Add check for listening ssh-agent to run.sh #16

Closed
wants to merge 1 commit into from
Closed

Conversation

IanEff
Copy link
Contributor

@IanEff IanEff commented Jan 4, 2024

The script assumes a listener on SSH_AUTH_SOCK for later operations. This ensures that there's a listener, and that the key specified in terraform.tfvars has been added.

The caveats are listed in TODO.

The script assumes a listener on SSH_AUTH_SOCK for later operations.  This ensures that there's a listener, and that the key specified in terraform.tfvars has been added.

The caveats are listed in TODO.
@IanEff IanEff requested a review from zalsader January 4, 2024 22:20
@IanEff IanEff self-assigned this Jan 4, 2024
Copy link

linear bot commented Jan 4, 2024

echo "ssh-agent isn't running."

# Start ssh-agent
# NOTE/TODO: The agent sicks around, but only listens to the bash instance launched by the script.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using a bash trap to kill the ssh agent when the script completes or is terminated?

@IanEff IanEff closed this Jan 5, 2024
@IanEff IanEff deleted the gen-290 branch January 5, 2024 19:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants