Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
Persistant ssh storage on ~/work
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 31, 2024
1 parent ab0cbf6 commit 2e73253
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prep/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ fi

export SSH_AUTH_SOCK=/run/lock/agent.$USER
if [ ! -S $SSH_AUTH_SOCK ] ; then
install -dpv -m 700 ~/work/.ssh
ln -sfv ~/work/.ssh ~/
eval `ssh-agent -a $SSH_AUTH_SOCK` | grep -v "^Agent pid"
ssh-add ~/work/.ssh/id_rsa
fi

0 comments on commit 2e73253

Please sign in to comment.