aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ssh/.ssh/config
blob: 996e9afbfbcfa2cd93caa6fee7c4389748b1c100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Read more about SSH config files: https://linux.die.net/man/5/ssh_config

Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"

Host *
    StrictHostKeyChecking no
    ServerAliveInterval 300
    ServerAliveCountMax 2

Host odin frigg thor loki heimdall hydra bifrost
    User tobyv
    StreamLocalBindUnlink yes
    RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra
    RemoteForward /run/user/1000/gnupg/S.gpg-agent.ssh /run/user/1000/gnupg/S.gpg-agent.ssh
    ControlMaster auto
    ControlPath ${XDG_RUNTIME_DIR}/ssh.%C
    ControlPersist 30m

Host hydra
    User tobyv
    HostName iris.tayoby.com
    port 8795