[ssh] Fix b0rken redirected sockets and just use one per customer VM
This commit is contained in:
parent
f3ed0f67d5
commit
3c5af95374
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Override the tmux ssh auth sock with the most current version
|
||||
SSH_TMUX_SOCK="${HOME}/.ssh/ssh_auth_sock"
|
||||
LATEST_SSH_SOCK=$(ls -t1 /tmp/ssh-*/agent.* | head -n 1)
|
||||
ln -sf "$LATEST_SSH_SOCK" "$SSH_TMUX_SOCK"
|
||||
export SSH_AUTH_SOCK="${SSH_TMUX_SOCK}"
|
|
@ -50,6 +50,7 @@ set -g automatic-rename on
|
|||
set -g automatic-rename-format '#{b:pane_current_path}'
|
||||
|
||||
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
|
||||
set -g update-environment SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
|
||||
|
||||
# Blinky linky
|
||||
set -gw monitor-activity on
|
||||
|
|
|
@ -59,12 +59,6 @@ alias cm-private="chezmoi -S ~/.local/share/chezmoi-private"
|
|||
timestamp() { date +%Y-%m-%d-%H%M%S }
|
||||
letterup() { take $1 && cp -a ~/Documents/Personal/Brief-Vorlage/2017-LaTeX/* .; }
|
||||
|
||||
# Override the tmux ssh auth sock
|
||||
SSH_TMUX_SOCK="${HOME}/.ssh/ssh_auth_sock"
|
||||
if [ "${SSH_AUTH_SOCK}" != "${SSH_TMUX_SOCK}" ] && [ "${SSH_AUTH_SOCK}" != "" ]; then
|
||||
ln -sf "$SSH_AUTH_SOCK" "$SSH_TMUX_SOCK"
|
||||
fi
|
||||
|
||||
# Pretty up FZF
|
||||
export FZF_DEFAULT_OPTS='
|
||||
--prompt=" "
|
||||
|
|
Loading…
Reference in New Issue