{"id":45078744,"url":"https://github.com/aicheye/tui.seanyang.me","last_synced_at":"2026-04-02T14:01:23.113Z","repository":{"id":339336539,"uuid":"1161484075","full_name":"aicheye/tui.seanyang.me","owner":"aicheye","description":"portfolio over ssh","archived":false,"fork":false,"pushed_at":"2026-03-26T07:20:18.000Z","size":235,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-27T02:29:42.054Z","etag":null,"topics":["docker","docker-compose","ratatui","rust","rust-lang","ssh","tokio"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/aicheye.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-02-19T06:47:09.000Z","updated_at":"2026-03-26T07:19:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aicheye/tui.seanyang.me","commit_stats":null,"previous_names":["aicheye/ssh.seanyang.me"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/aicheye/tui.seanyang.me","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicheye%2Ftui.seanyang.me","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicheye%2Ftui.seanyang.me/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicheye%2Ftui.seanyang.me/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicheye%2Ftui.seanyang.me/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aicheye","download_url":"https://codeload.github.com/aicheye/tui.seanyang.me/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicheye%2Ftui.seanyang.me/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-compose","ratatui","rust","rust-lang","ssh","tokio"],"created_at":"2026-02-19T14:06:52.442Z","updated_at":"2026-04-02T14:01:22.976Z","avatar_url":"https://github.com/aicheye.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tui.seanyang.me\n\nA personal portfolio and introduction, served over SSH as an interactive TUI. Heavily inspired by \u003chttps://www.terminal.shop/\u003e\n\n```bash\nssh seanyang.me\nssh tui.seanyang.me\n```\n\n\u003cimg width=\"920\" height=\"664\" alt=\"image\" src=\"https://github.com/user-attachments/assets/3315f01f-383a-4104-99ca-676e722884d7\" /\u003e\n\n## Deployment\n\nThis guide covers hosting the TUI on a home server while keeping normal SSH access to the machine.\n\nThe idea: move your real SSH daemon to a non-standard port, then give port 22 to the TUI container so that `ssh tui.seanyang.me` connects directly to it.\n\n### Prerequisites\n\n- A machine with [Docker](https://docs.docker.com/get-docker/) installed\n- An A record for `tui.seanyang.me` pointing to the machine's public IP\n- Port 22 forwarded to the machine on your router\n\n### 1. Move Your SSH Daemon Off Port 22\n\nEdit `/etc/ssh/sshd_config`:\n\n```bash\nPort 2200\n```\n\nRestart:\n\n```bash\nsudo systemctl restart sshd\n```\n\n\u003e [!CAUTION]\n\u003e **Before closing your current session**, verify you can connect on the new port:\n\u003e\n\u003e ```bash\n\u003e ssh -p 2200 user@your-machine\n\u003e ```\n\nTo make this convenient, add an entry to `~/.ssh/config` on your local machine:\n\n```bash\nHost home\n    HostName tui.seanyang.me\n    Port 2200\n    User your-username\n```\n\nNow `ssh home` connects to your real shell.\n\n### 2. Start the Container\n\n```bash\ngit clone https://github.com/aicheye/tui.seanyang.me.git\ncd tui.seanyang.me\ndocker compose up -d --build\n```\n\nThis builds the image and starts the container, mapping host port `22` → container port `2222`, so visitors running `ssh tui.seanyang.me` hit the TUI.\n\n### 3. Verify\n\nFrom another machine:\n\n```bash\n# Should open the TUI\nssh tui.seanyang.me\n\n# Should open your real shell\nssh -p 2200 tui.seanyang.me\n```\n\n---\n\n## Configuration\n\nAll configuration is done via environment variables:\n\n| Variable | Default | Description |\n|---|---|---|\n| `SSH_ADDR` | `0.0.0.0:2222` | Address and port the SSH server binds to inside the container |\n| `SSH_HOST_KEY` | `/data/host_key` | Path to the Ed25519 host key (auto-generated on first run) |\n| `RUST_LOG` | `info` | Log level filter (`trace`, `debug`, `info`, `warn`, `error`) |\n\n### Persisting the Host Key\n\nThe host key lives at `/data/host_key` inside the container. The volume mount (`-v ssh-host-key:/data`) ensures it survives container restarts.\n\n\u003e [!IMPORTANT]\n\u003e If the host key changes, returning visitors will see an SSH host key mismatch warning.\n\n---\n\n## Host Deployment (without Docker)\n\nDownload the latest binary from [GitHub Releases](https://github.com/aicheye/tui.seanyang.me/releases):\n\n```bash\ncurl -fsSL https://github.com/aicheye/tui.seanyang.me/releases/download/v0.1.7/tui-seanyang-me-linux-x64.zip \\\n  -o tui-seanyang-me.zip\nunzip tui-seanyang-me.zip\nchmod +x tui-seanyang-me\n```\n\n### systemd Service\n\nCreate `/etc/systemd/system/tui-seanyang-me.service`:\n\n```ini\n[Unit]\nDescription=tui.seanyang.me SSH TUI server\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=/usr/local/bin/tui-seanyang-me\nEnvironment=SSH_ADDR=0.0.0.0:22\nEnvironment=SSH_HOST_KEY=/var/lib/tui-seanyang-me/host_key\nEnvironment=RUST_LOG=info\nRestart=on-failure\nRestartSec=5\n\nNoNewPrivileges=true\nProtectSystem=strict\nReadWritePaths=/var/lib/tui-seanyang-me\n\n[Install]\nWantedBy=multi-user.target\n```\n\n```bash\nsudo mkdir -p /var/lib/tui-seanyang-me\nsudo cp tui-seanyang-me /usr/local/bin/\nsudo systemctl daemon-reload\nsudo systemctl enable --now tui-seanyang-me\n```\n\n---\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faicheye%2Ftui.seanyang.me","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faicheye%2Ftui.seanyang.me","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faicheye%2Ftui.seanyang.me/lists"}