#!/bin/bash keychain -q --timeout 30 . ~/.keychain/${HOSTNAME}-sh if ! ssh-add -l | grep -q '.ssh/id_rsa'; then ssh-add-helper ~/.ssh/id_rsa fi