summaryrefslogtreecommitdiff
path: root/misc/dotfiles/ssh/config.j2
blob: 5c019c49113ec3bbbe7410679112732c9807adfe (plain) (blame)
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
Host *
{% if ansible_facts['os_family'] == "Darwin" %}
    # macOS specific settings.
    UseKeychain yes
    AddKeysToAgent yes
{% endif %}

Host shell gate sun mail
    Hostname %h.ilvokhin.com
    User d
    ForwardAgent yes

# Moscow machines behind NAT.
Host flame
{% if inventory_hostname_short != "gate" %}
    ProxyJump gate
{% endif %}
    Hostname localhost
    Port 2222
    ForwardAgent yes

Host water
{% if inventory_hostname_short != "gate" %}
    ProxyJump gate
{% endif %}
    Hostname localhost
    Port 2223
    ForwardAgent yes