8 lines
129 B
Bash
Executable file
8 lines
129 B
Bash
Executable file
#!/bin/sh
|
|
if [ -f .ssh-agent ]; then
|
|
. .ssh-agent
|
|
else
|
|
killall ssh-agent
|
|
ssh-agent > .ssh-agent
|
|
ssh-add ~/.ssh/id_rsa
|
|
fi
|