Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
load-key: put an end to the annoying ssh sock issue
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Sreedharan <asreedharan@pivotal.io>
  • Loading branch information
arjun024 authored and Garden Windows committed May 9, 2019
1 parent 0393a48 commit d44c212
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotfiles/bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ function load-key() {
/usr/bin/ssh-add -D
tmp_file=`mktemp`
lpass show --notes $KEY_NOTE > $tmp_file
# Make sure nobody messed with ssh-agent's sock $SSH_AUTH_SOCK
command -v gnome-keyring-daemon > /dev/null && export eval `gnome-keyring-daemon -s`
/usr/bin/ssh-add -t ${HOURS}H $tmp_file
rm $tmp_file
fi
Expand Down

0 comments on commit d44c212

Please sign in to comment.