1
0

modify tmux and ssh to recover SSH_AUTH_SOCK after tmux reconnect

This commit is contained in:
2025-05-03 14:29:16 +01:00
parent b413b1eca8
commit b74c1777b5
2 changed files with 11 additions and 0 deletions

7
base/.ssh/rc Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# Fix SSH auth socket location so agent forwarding works with tmux.
if test "$SSH_AUTH_SOCK" ; then
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
fi