{"id":51140521,"url":"https://github.com/ddv1982/tailmux","last_synced_at":"2026-06-25T22:02:27.691Z","repository":{"id":335185507,"uuid":"1144643418","full_name":"ddv1982/tailmux","owner":"ddv1982","description":"Access tmux sessions on your Tailscale devices from anywhere.","archived":false,"fork":false,"pushed_at":"2026-03-31T23:02:46.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-01T01:40:42.047Z","etag":null,"topics":["bash","cli","devtools","homelab","linux","macos","remote-access","ssh","tailscale","tailscale-ssh","tmux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddv1982.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-28T22:11:31.000Z","updated_at":"2026-03-31T23:02:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ddv1982/tailmux","commit_stats":null,"previous_names":["ddv1982/remote-ai-bridge","ddv1982/tailmux"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ddv1982/tailmux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddv1982%2Ftailmux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddv1982%2Ftailmux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddv1982%2Ftailmux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddv1982%2Ftailmux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddv1982","download_url":"https://codeload.github.com/ddv1982/tailmux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddv1982%2Ftailmux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34793957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cli","devtools","homelab","linux","macos","remote-access","ssh","tailscale","tailscale-ssh","tmux"],"created_at":"2026-06-25T22:02:27.011Z","updated_at":"2026-06-25T22:02:27.665Z","avatar_url":"https://github.com/ddv1982.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailmux\n\nAccess tmux sessions on your Tailscale devices from anywhere.\n\n```bash\ntailmux macbook-pro       # connect by device name\ntailmux 100.101.102.103   # connect by Tailscale IP\n```\n\n## Contents\n\n- [Prerequisites](#prerequisites)\n- [Quick Start](#quick-start)\n- [Setup Commands](#setup-commands)\n- [Usage](#usage)\n- [File Sharing (Taildrive)](#file-sharing-taildrive)\n- [Supported Platforms](#supported-platforms)\n- [Uninstall](#uninstall)\n- [Notes](#notes)\n- [Development](#development)\n- [License](#license)\n\n## Prerequisites\n\n- bash and curl\n- A [Tailscale](https://tailscale.com) account\n- Tailscale SSH enabled on the destination: `sudo tailscale up --ssh`\n\n## Quick Start\n\n```bash\nbash \u003c(curl -fsSL https://raw.githubusercontent.com/ddv1982/tailmux/main/setup.sh)\n```\n\nThis will:\n- Install Tailscale and tmux (Homebrew on macOS, system package manager on Linux)\n- Add the `tailmux` shell function\n- Configure Tailscale operator access (Linux) and enable Tailscale SSH\n- Optionally install [Taildrive](#file-sharing-taildrive) shell functions\n\n## Setup Commands\n\n```bash\nbash setup.sh install    # install/configure everything\nbash setup.sh uninstall  # remove shell functions and optionally Tailscale state\nbash setup.sh update     # check for and apply package updates\nbash setup.sh --help     # show all options\n```\n\nAll managed packages (`tailscale`, `tmux`, `davfs2`) track the latest stable version. Set `TAILMUX_TAILSCALE_TRACK=unstable` to follow the unstable channel.\n\n## Usage\n\n```bash\ntailmux \u003chost\u003e            # connect and attach/create tmux session\ntailmux doctor \u003chost\u003e     # run resolver diagnostics\ntailmux --help            # show usage\ntailmux --version         # show version\n```\n\n**Tip:** Use `tailscale status` to list all devices with their hostnames and IPs.\n\n**Examples:**\n\n```bash\ntailmux macbook-pro       # connect by device name\ntailmux 100.101.102.103   # connect by Tailscale IP\ntailmux doctor home       # diagnose resolution for \"home\"\n```\n\n### Host Resolution Order\n\n`tailmux` resolves hosts in this order to handle cases where short-name DNS is unreliable:\n\n1. Direct IP input\n2. User alias file (`~/.config/tailmux/hosts`)\n3. `tailscale status --json` (device hostname / short name / FQDN)\n4. `tailscale dns query` against your tailnet suffix\n5. Optional LAN fallback (`\u003chost\u003e.local`) when `TAILMUX_LAN_FALLBACK=1`\n6. System DNS lookup\n\n### Alias File\n\n- Path: `~/.config/tailmux/hosts` (override with `TAILMUX_HOSTS_FILE`)\n- Format: `\u003calias\u003e \u003ctarget\u003e`\n- Example:\n  ```text\n  home 100.64.0.10\n  mini mini.example-tailnet.ts.net\n  ```\n\n## File Sharing (Taildrive)\n\nShare directories between devices using [Taildrive](https://tailscale.com/docs/features/taildrive):\n\n```bash\ntailshare myproject ~/projects/myapp     # share a directory\ntailmount linux-laptop myproject         # mount on another machine\n```\n\nFor ACL setup, commands reference, and macOS CLI details, see [docs/taildrive.md](docs/taildrive.md).\n\nFor troubleshooting connection issues, Tailscale on macOS, and Linux mounts, see [docs/troubleshooting.md](docs/troubleshooting.md).\n\n## Supported Platforms\n\n| OS | Package Manager | Remote Access Mode |\n|----|-----------------|--------------------|\n| macOS | Homebrew | Tailscale SSH |\n| Debian/Ubuntu | apt | Tailscale SSH |\n| Fedora | dnf | Tailscale SSH |\n| RHEL/CentOS | yum | Tailscale SSH |\n| Arch Linux | pacman | Tailscale SSH |\n| Windows | - | Use WSL |\n\n## Uninstall\n\n```bash\nbash \u003c(curl -fsSL https://raw.githubusercontent.com/ddv1982/tailmux/main/setup.sh) uninstall\n```\n\n## Notes\n\n- All connections use [Tailscale SSH](https://tailscale.com/kb/1193/tailscale-ssh) — no exposed port 22 or system SSH daemon required on any platform\n- Your tailnet ACLs must allow Tailscale SSH access (all platforms use Tailscale SSH policy)\n- You can set simpler machine names in the [Tailscale admin console](https://login.tailscale.com/admin/machines) by clicking on a device and editing its name\n\n## Development\n\n`setup.sh` loads modules from `scripts/lib/`: `constants.sh`, `dependency_policy.sh`, `ui.sh`, `platform.sh`, `taildrive_templates.sh`, `rc_blocks.sh`, `managed_blocks.sh`, `package_manager.sh`, `tailscale_macos.sh`, `packages.sh`, `update.sh`, `install.sh`, `uninstall.sh`, `cli.sh`.\n\nRun tests:\n\n```bash\nbash scripts/tests/run.sh lint    # syntax + shellcheck\nbash scripts/tests/run.sh quick   # required core regression suites\nbash scripts/tests/run.sh full    # core + extended regression suites\nbash scripts/tests/smoke.sh       # compatibility wrapper (runs full)\n```\n\nCI uses required checks (`lint`, `core-linux`, `core-macos`) and advisory extended checks (`extended-linux`, `extended-macos`).\n\nFor local module development:\n\n```bash\nTAILMUX_USE_LOCAL_MODULES=1 bash setup.sh install\n```\n\n## License\n\nReleased under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddv1982%2Ftailmux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddv1982%2Ftailmux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddv1982%2Ftailmux/lists"}