30 lines
767 B
Plaintext
30 lines
767 B
Plaintext
# SSH Config for Termux with mDNS/Tailscale resolution
|
|
# Copy relevant sections to ~/.ssh/config
|
|
|
|
Host *
|
|
IdentityFile ~/.ssh/id_ed25519
|
|
IdentitiesOnly yes
|
|
ServerAliveInterval 60
|
|
ServerAliveCountMax 3
|
|
ConnectTimeout 10
|
|
|
|
# === mDNS (.local) - Dynamic resolution ===
|
|
Host *.local
|
|
User <your-user>
|
|
ProxyCommand ~/.local/bin/ssh-mdns-proxy %h %p
|
|
|
|
# === Short hostnames -> mDNS first, then Tailscale ===
|
|
Host <host-1>
|
|
User <your-user>
|
|
ProxyCommand ~/.local/bin/ssh-mdns-proxy %h %p
|
|
|
|
Host <host-2>
|
|
User <your-user>
|
|
ProxyCommand ~/.local/bin/ssh-mdns-proxy %h %p
|
|
|
|
# === ProxyJump (hosts without Tailscale, via jump host) ===
|
|
# Host <lan-only-host>
|
|
# HostName <lan-only-host>.local
|
|
# User <user>
|
|
# ProxyJump <jump-host>
|