C.W.K.
Stream
Lesson 12 of 12 · published

Real Fleet Config

~20 min · fleet, production-config, tailscale, lan, complete-example

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

Production-shaped ~/.ssh/config

다 합쳐서 — 9 머신 home/office fleet 의 진짜 config, 집에선 LAN 직접, 어디서든 접근은 Tailscale (Track 6). Config 가 자라야 할 모양.

구조 해부

  1. 글로벌 디폴트 맨 아래 — 키, agent/keychain, keepalive, ControlMaster.
  2. Workstation 그룹 — user 공유, HostName 변화.
  3. Laptop 비슷하게 그룹.
  4. Tailscale alias ts- 접두사, *.tail-net.ts.net 가리킴 (Track 6).

Code

한 번 셋업·bash
mkdir -p ~/.ssh/sockets && chmod 700 ~/.ssh/sockets
완전한 ~/.ssh/config·ssh-config
# ════════════════════════════════════════════════
# Office workstations (10GbE LAN)
# ════════════════════════════════════════════════
Host office
    HostName 192.168.1.10
    User you_username
Host server
    HostName 192.168.1.11
    User you_username
Host music
    HostName 192.168.1.12
    User you_username
Host worker
    HostName 192.168.1.13
    User you_username

# ════════════════════════════════════════════════
# Portables
# ════════════════════════════════════════════════
Host macbook
    HostName 192.168.1.20
    User you_username
Host pro2024
    HostName 192.168.1.21
    User you_username
Host pro2023
    HostName 192.168.1.22
    User you_username
Host mini
    HostName 192.168.1.30
    User you_username

# ════════════════════════════════════════════════
# Tailscale (anywhere)
# ════════════════════════════════════════════════
Host ts-*
    User you_username

Host ts-office
    HostName office.tail-net.ts.net
Host ts-server
    HostName server.tail-net.ts.net
Host ts-music
    HostName music.tail-net.ts.net

# ════════════════════════════════════════════════
# Global defaults — MUST be last
# ════════════════════════════════════════════════
Host *
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
    ServerAliveInterval 60
    ServerAliveCountMax 3
    ControlMaster auto
    ControlPath ~/.ssh/sockets/%r@%h-%p
    ControlPersist 10m

External links

Exercise

현재 ~/.ssh/config 를 이 구조에 비춰 감사. 다음 있어 — workstation 그룹, laptop 그룹, Tailscale (또는 원격) alias 접두사, 글로벌 디폴트 맨 아래, ControlMaster 셋업, IdentitiesOnly 활성화? 빠진 거 추가. 그다음 dotfiles repo 있으면 ~/.ssh/config commit — 이 파일이 cwkPippa 스타일 fleet 한테 몇 년 동안 보답하는 그 파일.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.