Skip to content

chpatton013/ssh-agent-canonicalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ssh-agent-canonicalize

A tool to help manage ssh-agent processes.

Description

ssh-agent-canonicalize will create a single "canon" agent and kill all other agent processes. It will then print the appropriate shell commands to configure your environment for the canon agent, and invoke ssh-add if your agent process is currently empty.

Repeated invocation of ssh-agent-canonicalize will leave the canon agent running so you can save yourself from hundreds of errant agents running all the time.

Usage

Put ssh-agent-canonicalize on your PATH, then:

eval $(ssh-agent-canonicalize)

Customization

The canonical agent environment file location is $XDG_RUNTIME_DIR/ssh-agent-canonicalize/env.source. If $XDG_RUNTIME_DIR is not set, then /tmp/user/$(id -u)/ssh-agent-canonicalize/env.source is used instead.

ssh-add will attempt to add the default ~/.ssh/id_* keyfiles when invoked with no arguments. If you want to use specific keyfiles, add them to ~/.ssh/.ssh-agent-default-keys (one relative filepath per line).

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages