This script allows you to add all SSH keys from your ~/.ssh
folder to the SSH agent at once.
It is especially useful when you have several accounts tied to the SSH for the same domain.
The script will look for SSH keys in ~/.ssh
You'll also need bash
and ssh-add
(from OpenSSH or equivalent) installed on your system.
From the Terminal, move to the directory you want to install this script (I recommend a directory with your $PATH environment variable) and execute those commands:
wget https://gist.githubusercontent.com/chsxf/0a1912aca6bc13568efae9f7ba807b0f/raw/ssh-add-all-keys.sh
chmod +x ssh-add-all-keys.sh