Based on ssh-askpass-tmux.
When called, it opens a pane in the first active tmux instance it finds (if you only have one tmux instance active, that's the one you're using) and switches to it. Useful if you want to have ssh-agent verify each use of registered keys when forwarding your ssh-agent on a Linux system that doesn't have a GUI or, something like Mingw/Cygwin.
- Tmux
- Bash 4.0 or newer
- Place it somewhere accessable (i.e.
/opt/tmux-askpass
or/usr/local/bin/tmux-askpass
etc.) - chmod 755
- Add the following to your shell's rc (replace
/location
with where you placed the script):
export SSH_ASKPASS="/location"
export DISPLAY=":0"