Robotic Soufflé
  • About Me
  • Resources
    Beautiful Jekyll Learn markdown GitHub Pages
  • Author's home

Reestablish ssh agent when reconnecting to remote tmux session

Posted on August 8, 2017

Drop this in to .bashrc or similar:

# Reconnect tmux session to the SSH agent
alias fixssh='export $(tmux showenv SSH_AUTH_SOCK)'

Source: https://stackoverflow.com/a/40967729/4554650

Tags: ssh, tmux, ssh-agent, reconnect
Share: Twitter LinkedIn
  • ← Previous Post
  • Next Post →
  • GitHub

Alastair Harrison  •  2018  •  aharrison24.github.io

Theme by beautiful-jekyll