Skip to content

Commit d35c2e3

Browse files
committed
Simplify SSH configuration and enable tmux
1 parent 85756c7 commit d35c2e3

File tree

3 files changed

+18
-40
lines changed

3 files changed

+18
-40
lines changed

ssh/config.d/csc.conf

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
# CSC servers
22

3-
Host lumi
4-
HostName lumi.csc.fi
3+
Host lumi mahti puhti
54
User mikamaki
65
ForwardAgent yes
76
PasswordAuthentication no
87
ForwardX11 yes
8+
RequestTTY yes
9+
RemoteCommand tmux new -A -s ssh \; setenv SSH_AUTH_SOCK $SSH_AUTH_SOCK
10+
11+
Host lumi
12+
HostName lumi.csc.fi
913

1014
Host mahti
1115
HostName mahti.csc.fi
12-
User mikamaki
13-
ForwardAgent yes
14-
PasswordAuthentication no
15-
ForwardX11 yes
1616

1717
Host puhti
1818
HostName puhti.csc.fi
19-
User mikamaki
20-
ForwardAgent yes
21-
PasswordAuthentication no
22-
ForwardX11 yes

ssh/config.d/git.conf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# Git servers
22

3+
Host bitbucket bitbucket.org github github.com gitlab gitlab.com version.helsinki.fi
4+
User git
5+
PasswordAuthentication no
6+
37
Host bitbucket bitbucket.org
48
HostName bitbucket.org
5-
User git
69
# BitBucket does not support Ed25519 keys
710
# IdentityFile ~/.ssh/id_rsa
8-
PasswordAuthentication no
911

1012
Host github github.com
1113
HostName github.com
12-
User git
13-
PasswordAuthentication no
1414

1515
Host gitlab gitlab.com
1616
HostName gitlab.com
17-
User git
18-
PasswordAuthentication no
17+
18+
Host version.helsinki.fi
19+
HostName version.helsinki.fi

ssh/config.d/helsinki.conf

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,60 +6,41 @@
66
Match Host hile exec "! hostname | grep 'ad.helsinki.fi'"
77
ProxyJump melkki.cs.helsinki.fi
88

9+
Host hile markka melkki melkinkari melkinpaasi pangolin pultti turso *.physics.helsinki.fi *.it.helsinki.fi
10+
User makimika
11+
ForwardAgent yes
12+
913
Host hile
1014
HostName hile01.it.helsinki.fi
11-
User makimika
12-
ForwardAgent yes
1315

1416
Host login.physics.helsinki.fi
1517
HostName login.physics.helsinki.fi
16-
User makimika
17-
ForwardAgent yes
1818
# Enable access with password to enable Kerberos to acquire its tickets,
1919
# and to make PyCharm remember remote connection credentials
20-
IdentitiesOnly no
20+
# IdentitiesOnly no
2121

2222
Host markka markka.it.helsinki.fi
2323
HostName markka.it.helsinki.fi
24-
User makimika
25-
ForwardAgent yes
2624

2725
Host melkki melkki.cs.helsinki.fi
2826
HostName melkki.cs.helsinki.fi
29-
User makimika
30-
ForwardAgent yes
3127

3228
Host melkinkari melkinkari.cs.helsinki.fi
3329
HostName melkinkari.cs.helsinki.fi
34-
User makimika
35-
ForwardAgent yes
3630

3731
Host melkinpaasi melkinpaasi.cs.helsinki.fi
3832
HostName melkinpaasi.cs.helsinki.fi
39-
User makimika
40-
ForwardAgent yes
4133

4234
Host pangolin pangolin.it.helsinki.fi
4335
HostName pangolin.it.helsinki.fi
44-
User makimika
45-
ForwardAgent yes
4636

4737
Host pultti pultti.it.helsinki.fi
4838
# This is a larger machine than the other login hosts:
4939
# 256 GB RAM, 2x Intel Xeon CPU E5-2620 -> 24 threads
5040
HostName pultti.it.helsinki.fi
51-
User makimika
52-
ForwardAgent yes
5341

5442
Match Host turso exec "! hostname | grep 'ad.helsinki.fi'"
5543
ProxyJump melkinpaasi
5644

5745
Host turso turso.cs.helsinki.fi
5846
HostName turso.cs.helsinki.fi
59-
User makimika
60-
ForwardAgent yes
61-
62-
Host version.helsinki.fi
63-
HostName version.helsinki.fi
64-
User git
65-
PasswordAuthentication no

0 commit comments

Comments
 (0)