Consolidate SSH config: merge duplicate hosts, fix paths and formatting

- Merge same-user hosts into grouped Host entries (timmy, ma)
- Fix ssh_key_management.sh path from ~/Sync to iCloud
- Standardize = syntax to space-separated (jason_hsieh)
- Unify indentation to 4 spaces (config)
- Remove duplicate 192.168.88.173 entry and redundant HostNames

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 13:11:56 +08:00
parent e9808800a9
commit e94f23d82e
5 changed files with 83 additions and 181 deletions

View File

@@ -1,69 +1,37 @@
Host 192.168.77.10
User root
User root
# MA 防火牆
Host ma_fw
HostName 192.168.88.1
User ubuntu
Host 192.168.88.2
User root
Host 192.168.88.99
User ubuntu
Host 192.168.88.4 192.168.88.4.nip.io
User pi
User pi
Host 192.168.88.10
User timmy
# MA 內網主機 (root)
Host 192.168.88.2
User root
Host 192.168.88.11
User timmy
Host 192.168.88.12
User timmy
Host 192.168.88.13
User timmy # 預設使用者:連線時自動使用 timmy 帳號登入
Host 192.168.88.15
User ubuntu
Host 192.168.88.16
User timmy
# MA 內網主機 (timmy)
Host 192.168.88.10 192.168.88.11 192.168.88.12 192.168.88.13 192.168.88.16 192.168.88.33
User timmy
Host 192.168.88.18
User timmy
LocalForward 50041 127.0.0.1:80
User timmy
LocalForward 50041 127.0.0.1:80
Host 192.168.88.19
User ubuntu
Host 192.168.88.30
User ubuntu
Host 192.168.88.31
User ubuntu
Host 192.168.88.173
User ubuntu
Host 192.168.88.32
User ubuntu
Port 22
Host 192.168.88.33
User timmy
# MA 內網主機 (ubuntu)
Host 192.168.88.15 192.168.88.19 192.168.88.30 192.168.88.31 192.168.88.32 192.168.88.99 192.168.88.181 192.168.88.193 192.168.88.194
User ubuntu
# Mail Server MA (內網連線)
Host mail_ma_local 192.168.88.35
HostName 192.168.88.35
User timmy
LocalForward 16361 127.0.0.1:80 # Mail 管理介面
HostKeyAlgorithms +ssh-rsa # 支援舊版加密
PubkeyAcceptedKeyTypes +ssh-rsa # 支援舊版金鑰
LocalForward 16361 127.0.0.1:80
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
# --- Timmy Personal Dev ---
@@ -99,63 +67,41 @@ Host ma_mediawiki
HostName 192.168.88.173
User ubuntu
Host 192.168.88.181
User ubuntu
# --- MA 虛擬化主機 ---
Host 192.168.88.193
User ubuntu
HostName 192.168.88.193
Host 192.168.88.194
User ubuntu
HostName 192.168.88.194
# This is VMware ESXi 6.0.0 Update 2 with the main firewall for MA on the 11th floor of Oriental Science Park (internal IP 192.168.88.1) and the firewall for implementing IPv6 (internal IP 192.168.88.150).
# VMware ESXi 6.0.0 (11F 防火牆 + IPv6 防火牆)
Host 192.168.88.241
User root
HostKeyAlgorithms +ssh-rsa
User root
HostKeyAlgorithms +ssh-rsa
# This is the MA VMware ESXi 6.7.0 Update 1 server with a mail server, along with the firewall for the 5th floor of Oriental Science Park and a dedicated firewall for the mail server.
# VMware ESXi 6.7.0 (郵件伺服器 + 5F 防火牆)
Host 192.168.88.248
User root
User root
# This is the MA PVE server.
Host 192.168.88.247
User root
# PVE 伺服器
Host 192.168.88.247 192.168.88.249 192.168.88.73
User root
# This is the MA PVE server.
Host 192.168.88.249
User root
# This is the MA PVE server.
Host 192.168.88.73
User root
# This is the firewall for MA on the 5th floor of Oriental Science Park.
# 5F 防火牆 (東方科學園區)
Host 192.168.3.88
User apple
ProxyJump 211.23.141.208
Ciphers aes256-cbc,aes256-ctr
User apple
ProxyJump 211.23.141.208
Ciphers aes256-cbc,aes256-ctr
# This is the firewall for MA on the 11th floor of Oriental Science Park.
# 11F 防火牆 (東方科學園區)
Host 211.23.141.208
User ubuntu
User ubuntu
# This is the firewall for MA on the 11th floor of Oriental Science Park.
# Host 211.23.141.207
# User timmy
# This is the Ubuntu Server for the Serbia office.
# Serbia 辦公室
Host 89.216.107.241 serbia-office
HostName 89.216.107.241
User timmy
Port 8022
Ciphers aes256-cbc,aes256-ctr
ProxyJump 211.23.141.208
HostName 89.216.107.241
User timmy
Port 8022
Ciphers aes256-cbc,aes256-ctr
ProxyJump 211.23.141.208
# 遠振
Host 103.123.242.152 yz-prod
User root
HostName 103.123.242.152
HostKeyAlgorithms ssh-rsa
User root
HostName 103.123.242.152
HostKeyAlgorithms ssh-rsa