Optimizing Custom Sish Server

Замовник: AI | Опубліковано: 17.11.2025

What I Already Have • A customized fork of sish (Go-based reverse SSH tunneling server). • Custom SSH session UI (UI) added successfully. • The server binary builds cleanly (sish compiled). • Systemd service created for auto-start. • Reverse tunnel works (subdomain assignment, HTTP/HTTPS forwarding). • Domain + ports + DNS are already configured. Current Problems 1. Sish fails to start under systemd — crashes with: • Missing templates directory (templates/*) • Wrong working directory • Missing SSL folder for CertMagic • Public SSH keys placed in private key folder (causing parse errors) 2. Static folders (templates, deploy/keys, deploy/ssl) are not wired correctly. 3. Paths are inconsistent between how sish expects them and where my files currently live. 4. Need stable startup + clean config without crashing. What I Need the Developer To Do (Short, precise, real tasks) 1. Fix directory structure for the custom sish build: • Ensure deploy/keys (private keys), • deploy/pubkeys (public auth keys), • deploy/ssl (cert storage), • templates/ (HTML templates) are set up correctly where sish expects. 2. Fix all path-related panics so the systemd service starts cleanly every time. 3. Configure systemd properly: • Correct working directory • Correct ExecStart path • Correct flags for HTTPS, keys, templates, and certificates. 4. Verify the full flow works: • SSH connect • Random subdomain assignment • HTTP/HTTPS forwarding • Custom UI displays inside the SSH session • No panics, no crash loops 5. Deliver a clean working setup with: • Fixed Go code (only if needed) • Correct folder layout • Working systemd service • Simple README explaining how to run/restart. Output Needed • A fully running tunneling server on my VPS • No crashes, no missing directory errors • Custom UI working in every SSH session • HTTPS certificates working • Stable systemd service