Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 958 Bytes

notes.md

File metadata and controls

26 lines (19 loc) · 958 Bytes

ssh

ssh-agent

This works to make ssh-agent work across terminals (in tmux too), but it leaves your .sock file hanging which may need to be manually pruned and doesn't work perfectly.

~/.profile

export SSH_AUTH_SOCK=~/.ssh/ssh-agent.$HOSTNAME.sock
ssh-add -l 2>/dev/null >/dev/null
if [ $? -ge 2 ]; then
  ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null
fi

Supposedly this works to make it available across all login sessions. Don't know how well or if this works:

References:

tmux

References: