# 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 ProxyCommand ~/.local/bin/ssh-mdns-proxy %h %p # === Short hostnames -> mDNS first, then Tailscale === # HostKeyAlias pins host-key verification to the canonical name, so that a short # alias and the full name share ONE known_hosts entry. Without it, `ssh alias` # checks the key under the alias and fails when only the canonical name is known # (or when a stale alias entry lingers after a reinstall). Host User HostKeyAlias ProxyCommand ~/.local/bin/ssh-mdns-proxy %h %p Host User HostKeyAlias ProxyCommand ~/.local/bin/ssh-mdns-proxy %h %p # === ProxyJump (hosts without Tailscale, via jump host) === # Host # HostName .local # User # ProxyJump