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

CanonicalizeHostname yes
CanonicalDomains asgard.tobyvin.dev
ControlPath ${XDG_RUNTIME_DIR}/ssh.%C

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

Host *
    StrictHostKeyChecking no
    ServerAliveInterval 300
    ServerAliveCountMax 2

Host *.asgard.tobyvin.dev
    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
    RemoteForward /run/user/1000/discord-ipc-0 /run/user/1000/discord-ipc-0
    ControlMaster auto
    ControlPersist 30m

Host archiso
    User root