Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 273 Bytes

start_ssh_agent.md

File metadata and controls

12 lines (10 loc) · 273 Bytes

Start ssh-agent

Add it to ~/.bashrc because I always forget it...

function ssha() {
        echo Starting ssh agent...
        eval `ssh-agent -s`
        ssh-add ~/.ssh/id_rsa
        trap 'test -n "$SSH_AGENT_PID" && eval `/usr/bin/ssh-agent -k`' 0
}