summaryrefslogtreecommitdiff
path: root/ssh/config-wmf
blob: 7778d152838b317873a92d692e10a2b031d4304e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SSH client configuration for WMF use.

# Turn this on for Match to work.
CanonicalizeHostname yes

# Defaults for all WMF hosts.
Match host=*.wikimedia.org,*.wmnet
    ForwardAgent no
    IdentitiesOnly yes
    KbdInteractiveAuthentication no
    PasswordAuthentication no
    User liw
    UserKnownHostsFile ~/.ssh/known_hosts.d/wmf-prod

# Configure the initial connection to the bastion host, with the one
# HostName closest to you
Host bast
    HostName bast3004.wikimedia.org
    IdentityFile ~/.ssh/prod.key

# Proxy all connections to internal servers through the bastion host
Host *.wmnet *.wikimedia.org !gerrit.wikimedia.org !bast*.wikimedia.org
    ProxyJump bast
    IdentityFile ~/.ssh/prod.key

Host gerrit.wikimedia.org
    Port 29418
    IdentityFile ~/.ssh/lab.key