forked from holman/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.ssh_config.example
More file actions
53 lines (45 loc) · 1.15 KB
/
.ssh_config.example
File metadata and controls
53 lines (45 loc) · 1.15 KB
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
# SSH Client Configuration
# Copy to ~/.ssh/config and customize
#
# See: man ssh_config
# Global defaults
Host *
# Keep connections alive
ServerAliveInterval 60
ServerAliveCountMax 3
# Connection sharing (multiplexing) - reuse connections
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
# Security
IdentitiesOnly yes
AddKeysToAgent yes
# macOS keychain integration
# UseKeychain yes
# Example: Personal GitHub
# Host github.com
# HostName github.com
# User git
# IdentityFile ~/.ssh/id_ed25519
# Example: Work GitHub (if using different account)
# Host github-work
# HostName github.com
# User git
# IdentityFile ~/.ssh/id_ed25519_work
# Example: Jump host / bastion
# Host bastion
# HostName bastion.example.com
# User admin
# IdentityFile ~/.ssh/id_ed25519
#
# Host internal-server
# HostName 10.0.0.5
# User deploy
# ProxyJump bastion
# Example: Development server
# Host dev
# HostName dev.example.com
# User deploy
# IdentityFile ~/.ssh/id_ed25519
# LocalForward 3000 localhost:3000
# LocalForward 5432 localhost:5432