Skip to content

Commit e7d34a5

Browse files
committed
Update CSC SSH config
1 parent 8219926 commit e7d34a5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ssh/config.d/csc.conf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# CSC servers
22

3-
Host lumi mahti puhti
3+
Host lumi mahti puhti roihu
44
User mikamaki
55
ForwardAgent yes
66
PasswordAuthentication no
77
ForwardX11 yes
88
RequestTTY yes
9-
RemoteCommand tmux has-session && tmux set-environment SSH_AUTH_SOCK "$SSH_AUTH_SOCK" \; attach-session || tmux new-session
9+
RemoteCommand command -v tmux >/dev/null && (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
@@ -16,3 +16,6 @@ Host mahti
1616

1717
Host puhti
1818
HostName puhti.csc.fi
19+
20+
Host roihu
21+
HostName roihu.csc.fi

0 commit comments

Comments
 (0)