-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathssh_config
More file actions
73 lines (66 loc) · 2.05 KB
/
ssh_config
File metadata and controls
73 lines (66 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# HomeRack SSH Config for Tailscale
# ═══════════════════════════════════════════════════════════════════════════════
#
# USAGE:
# ssh nas
# ssh pi5cam
# ssh pi5main
# ssh macbook
# ssh macmini
#
# To use this config:
# 1. Copy to ~/.ssh/config or include it:
# echo "Include ~/code/homerack/ssh_config" >> ~/.ssh/config
#
# 2. Or use directly:
# ssh -F ~/code/homerack/ssh_config nas
#
# ═══════════════════════════════════════════════════════════════════════════════
# NAS - CM3588 with PhotoPrism
Host nas nas-photoprism
HostName nas-photoprism
User rege
ForwardAgent yes
ServerAliveInterval 60
ServerAliveCountMax 3
# Raspberry Pi 5 - AI Camera
Host pi5cam
HostName pi5cam
User rege
ForwardAgent yes
ServerAliveInterval 60
ServerAliveCountMax 3
# Raspberry Pi 5 - Main (Rails Staging)
Host pi5main
HostName pi5main
User rege
ForwardAgent yes
ServerAliveInterval 60
ServerAliveCountMax 3
# MacBook Pro
Host macbook macbook-pro-apple
HostName macbook-pro-apple
User rege
ForwardAgent yes
# Mac Mini
Host macmini mac-mini-darek
HostName mac-mini-darek
User rege
ForwardAgent yes
# iPhone (if SSH server is running)
Host iphone iphone-12
HostName iphone-12
User mobile
Port 2222
# Global defaults for all Tailscale hosts
Host nas-photoprism pi5cam pi5main macbook-pro-apple mac-mini-darek iphone-12
# Accept new host keys automatically on Tailscale network
StrictHostKeyChecking accept-new
# Keep connections alive
TCPKeepAlive yes
# Compression for slower connections
Compression yes
# Connection sharing for faster subsequent connections
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h:%p
ControlPersist 10m