{"id":50568082,"url":"https://github.com/arxdeus/hysteria2easy","last_synced_at":"2026-06-04T16:30:30.069Z","repository":{"id":355814690,"uuid":"1198984920","full_name":"arxdeus/hysteria2easy","owner":"arxdeus","description":"One-command Hysteria2 server simplest setup over SSH with auto TLS, QR code, zero config","archived":false,"fork":false,"pushed_at":"2026-05-05T10:30:14.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T12:30:16.343Z","etag":null,"topics":["acme","bash","hysteria","hysteria2","nekobox","proxy","quic","ssh","tls","v2ray","vless","vpn"],"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/arxdeus.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-04-02T00:30:43.000Z","updated_at":"2026-05-05T10:30:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arxdeus/hysteria2easy","commit_stats":null,"previous_names":["arxdeus/hysteria2easy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arxdeus/hysteria2easy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxdeus%2Fhysteria2easy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxdeus%2Fhysteria2easy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxdeus%2Fhysteria2easy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxdeus%2Fhysteria2easy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arxdeus","download_url":"https://codeload.github.com/arxdeus/hysteria2easy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arxdeus%2Fhysteria2easy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33914543,"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-04T02:00:06.755Z","response_time":64,"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":["acme","bash","hysteria","hysteria2","nekobox","proxy","quic","ssh","tls","v2ray","vless","vpn"],"created_at":"2026-06-04T16:30:29.346Z","updated_at":"2026-06-04T16:30:30.063Z","avatar_url":"https://github.com/arxdeus.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hysteria2 Easy Setup\n\nOne-command [Hysteria2](https://github.com/apernet/hysteria) server deployment over SSH — with automatic TLS certificates and a QR code for instant mobile connection.\n\n```\nbash hysteria2easy.sh\n```\n\n## What it does\n\n1. Connects to your VPS via SSH\n2. Installs Hysteria2 binary (latest release)\n3. Obtains a free TLS certificate from Let's Encrypt (via [acme.sh](https://github.com/acmesh-official/acme.sh))\n4. Generates server config + systemd service\n5. Starts the server\n6. Outputs a `hysteria2://` URI and a QR code — scan it with your client and go\n\n## Requirements\n\n### Local machine (where you run the script)\n\n| Tool | Install |\n|------|---------|\n| `sshpass` | `brew install sshpass` / `apt install sshpass` |\n| `qrencode` | `brew install qrencode` / `apt install qrencode` |\n| `curl` | pre-installed on most systems |\n\n### Remote server (VPS)\n\n- Linux (amd64 or arm64)\n- Root access via SSH with password\n- **Port 80 open** — required for ACME HTTP-01 certificate challenge\n- **Port 443 open** (or custom) — Hysteria2 listening port\n\n## Usage\n\n### Interactive mode\n\n```bash\nbash hysteria2easy.sh\n```\n\nYou'll be prompted for:\n- **Server IP** — your VPS IP address\n- **SSH password**\n- **Auth password** — the password clients use to connect\n\nEverything else has sensible defaults (port 22, root, port 443).\n\n### CLI mode (non-interactive)\n\n```bash\nbash hysteria2easy.sh \\\n  --ssh-host 1.2.3.4 \\\n  --ssh-password 'my-ssh-pass' \\\n  --password 'my-auth-pass' \\\n  --port 443 \\\n  --remark 'My VPN'\n```\n\n### All options\n\n| Flag | Description | Default |\n|------|-------------|---------|\n| `--ssh-host` | Server IP | prompted |\n| `--ssh-port` | SSH port | `22` |\n| `--ssh-user` | SSH user | `root` |\n| `--ssh-password` | SSH password | prompted |\n| `--port` | Hysteria2 listen port | `443` |\n| `--password` | Client auth password | prompted |\n| `--ip` | Override server public IP | `ssh-host` value |\n| `--remark` | Connection name | `Hysteria2` |\n\n## Client setup\n\nScan the QR code or copy the `hysteria2://` URI into any compatible client:\n\n| Platform | Client |\n|----------|--------|\n| Android | [NekoBox](https://github.com/MatsuriDayo/NekoBoxForAndroid), [Hiddify](https://github.com/hiddify/hiddify-app) |\n| iOS | [Shadowrocket](https://apps.apple.com/app/shadowrocket/id932747118), [Stash](https://apps.apple.com/app/stash/id1596063349) |\n| Windows | [v2rayN](https://github.com/2dust/v2rayN), [NekoRay](https://github.com/MatsuriDayo/nekoray) |\n| macOS | [NekoRay](https://github.com/MatsuriDayo/nekoray), [Hiddify](https://github.com/hiddify/hiddify-app) |\n| Linux | [NekoRay](https://github.com/MatsuriDayo/nekoray), [Hysteria2 CLI](https://github.com/apernet/hysteria) |\n\n## Server management\n\nAfter setup, run these on your VPS:\n\n```bash\n# Check status\nsystemctl status hysteria2\n\n# View logs\njournalctl -u hysteria2 -f --no-pager\n\n# Restart\nsystemctl restart hysteria2\n\n# Stop\nsystemctl stop hysteria2\n\n# Config location\ncat /etc/hysteria2/config.yaml\n```\n\n## Re-running the script\n\nRunning the script again on the same server is safe — it will:\n- Stop the existing Hysteria2 service\n- Re-download the latest binary\n- Re-issue the TLS certificate\n- Overwrite the config and restart\n\n## TLS certificates\n\n- Certificates are issued by **Let's Encrypt** via `acme.sh`\n- Valid for **90 days**, auto-renewed via cron\n- Stored at `/root/.acme.sh/\u003cip\u003e.nip.io_ecc/`\n- On renewal, Hysteria2 restarts automatically\n\n## How it works\n\nThe script uses [nip.io](https://nip.io) for automatic DNS — `1.2.3.4.nip.io` resolves to `1.2.3.4`. This lets us get a real TLS certificate without owning a domain.\n\nTraffic masquerades as HTTPS to `web.max.ru`, making the connection look like normal web browsing.\n\n## License\n\nMIT — [Artemis Kushner](https://github.com/arxdeus) © 2026\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxdeus%2Fhysteria2easy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farxdeus%2Fhysteria2easy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farxdeus%2Fhysteria2easy/lists"}