We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f2ce7 commit 0f9aa56Copy full SHA for 0f9aa56
ssh/config.d/csc.conf
@@ -6,7 +6,7 @@ Host lumi mahti puhti
6
PasswordAuthentication no
7
ForwardX11 yes
8
RequestTTY yes
9
- RemoteCommand tmux new -A -s ssh \; setenv SSH_AUTH_SOCK $SSH_AUTH_SOCK
+ RemoteCommand tmux has-session && tmux set-environment SSH_AUTH_SOCK "$SSH_AUTH_SOCK" \; attach-session || tmux new-session
10
11
Host lumi
12
HostName lumi.csc.fi
0 commit comments