summaryrefslogtreecommitdiff
path: root/.ssh/config
blob: f03ee9780bb3c6e56141fe6810c362bda3914256 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- mode: conf-space -*-

Host tty.sdf.org | sdf
HostName tty.sdf.org

Host odin.sdf-eu.org | sdfeu.org | sdf-eu.org | odin | sdfeu | sdf-eu
HostName odin.sdf-eu.org

# Wildcards here match what is actually typed on the command line, not the
# hostname of the machine we end up connecting to, so we specify 'sdf' too.
Host sdf sdfeu *.sdf.org *.sdf-eu.org
User spw

####################################################################

Host fasolo | ftp-master | ftp-master.debian.org
HostName ftp-master.debian.org

Host *.debian.org !*.ssh.debian.org !ssh.debian.org
ProxyJump ssh.debian.org
# ^ or: {na,eu}.ssh.debian.org

Host *.debian.org
User spwhitton
# Specify both files so that ssh adds host keys for IPs to the former.
UserKnownHostsFile ~/.ssh/known_hosts ~/.ssh/known_hosts_debian
StrictHostKeyChecking yes

####################################################################

Host athena.silentflame.com | athena
User spwhitton
HostName athena.silentflame.com
ForwardAgent yes
IdentityFile ~/.ssh/id_athena

# For demeter's gitolite installation.
Host git.spwhitton.name spwhitton.name
IdentityFile ~/.ssh/id_athena

####################################################################

Host zephyr.silentflame.com | zephyr
User swhitton
ForwardAgent yes

Host melete.silentflame.com | melete
User spwhitton
ForwardAgent yes

####################################################################

Host github | github.com
User git
HostName github.com
VerifyHostKeyDNS yes

# Avoid any password prompts if something goes wrong with the agent; when
# initialising a new rsync.net account, will need to comment this out.
Host *.rsync.net
PreferredAuthentications publickey

Host chiark
User spwhitton
HostName login.chiark.greenend.org.uk

Host deb.freexian.com
User extended-lts

####################################################################

Host *
User spwhitton
ControlMaster auto
ControlPath /tmp/ssh-%u-%r@%h:%p
ControlPersist 4h
ServerAliveInterval 5
ServerAliveCountMax 2
NoHostAuthenticationForLocalhost yes
ExitOnForwardFailure yes
# Visual host keys are cluttering when using myrepos.
VisualHostKey no