Skip to content

sdiebolt/zsh-ssh-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

zsh-ssh-agent

A Zsh plugin that starts ssh-agent automatically if it is not already running.

Install

Using the ⚡ Zap Zsh plugin manager, add the following to your .zshrc

plug "sdiebolt/zsh-ssh-agent"

Set a maximum lifetime for keys

To set a maximum lifetime when adding identities to ssh-agent, add the lifetime style to your .zshrc before the line that installs the plugin. The lifetime may be specified according to sshd_config(5) (see TIME FORMATS). If left unspecified, the default lifetime is forever.

zstyle :plugins:ssh-agent lifetime 4h

Automatically add keys to ssh-agent

To automatically add keys to ssh-agent, add the following to your ~/.ssh/config file:

AddKeysToAgent yes

Credits

This plugin is based on the Oh My Zsh plugin zsh-ssh-agent. Unfortunately, the Oh My Zsh plugin cannot be installed as a standalone plugin using ⚡ Zap.

About

A Zsh plugin that starts ssh-agent automatically.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages