remove damn ssh agent
This commit is contained in:
parent
cfc3b76332
commit
bb2ad39fcb
14
.zprofile
14
.zprofile
|
@ -1,14 +0,0 @@
|
||||||
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.$USER.sock
|
|
||||||
function ssh-agent-start ()
|
|
||||||
{
|
|
||||||
# if that socket does not exist, start the ssh-agent on it
|
|
||||||
if [[ -z $SSH_AGENT_PID ]]
|
|
||||||
then
|
|
||||||
rm $SSH_AUTH_SOCK
|
|
||||||
eval $(ssh-agent -a "$SSH_AUTH_SOCK") > /dev/null
|
|
||||||
# using ssh-add might ask for a password, we don't want that here.
|
|
||||||
# If only using ssh keys without passphrases, you can do this here
|
|
||||||
# ssh-add
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
ssh-agent-start
|
|
Loading…
Reference in New Issue