Skip to content

Commit 0f9aa56

Browse files
committed
Update tmux command
1 parent b5f2ce7 commit 0f9aa56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh/config.d/csc.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Host lumi mahti puhti
66
PasswordAuthentication no
77
ForwardX11 yes
88
RequestTTY yes
9-
RemoteCommand tmux new -A -s ssh \; setenv SSH_AUTH_SOCK $SSH_AUTH_SOCK
9+
RemoteCommand tmux has-session && tmux set-environment SSH_AUTH_SOCK "$SSH_AUTH_SOCK" \; attach-session || tmux new-session
1010

1111
Host lumi
1212
HostName lumi.csc.fi

0 commit comments

Comments
 (0)