Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh-agent: remove all keys upon SIGUSR1.. #297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 11, 2024

  1. ssh-agent: remove all keys upon SIGUSR1..

    With the advent of per-user temporary directories it became
    hard for an administrator to remove all keys from all running
    ssh-agent instances; what formerly could be done like so
    
       if command -v ssh-add >/dev/null 2>&1; then
          for a in /tmp/ssh-*/agent.*; do
             [ -e "$a" ] || continue
             act "SSH_AUTH_SOCK=\"$a\" ssh-add -D </dev/null >/dev/null 2>&1 &"
             inc
          done
       fi
    
    has become a major undertaking, especially with even more
    containerization.  Being able to remove all keys from all agents
    with a single command seems so desirable that it is available in
    other agents in the software world.
    sdaoden committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    f71689e View commit details
    Browse the repository at this point in the history