Scripts2026年5月17日·1 分钟阅读

sshx — Collaborative Terminal Sharing via the Web

sshx is a secure web-based terminal sharing tool that lets multiple users view and type in the same shell session with real-time multiplayer cursors.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Needs Confirmation · 64/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
sshx Overview
通用 CLI 安装命令
npx tokrepo install 25fc1fb0-51c9-11f1-9bc6-00163e2b0d79

Introduction

sshx provides instant collaborative terminal sessions accessible through a web browser. A single command generates a shareable link that lets remote participants see and interact with the same terminal, each with their own labeled cursor. It is built for pair programming, live debugging, and teaching scenarios.

What sshx Does

  • Creates a shared terminal session accessible via a unique URL
  • Shows each participant's cursor with a name label in real-time
  • Supports multiple terminal panes in an infinite canvas layout
  • Encrypts traffic end-to-end so the relay server cannot read session content
  • Requires no account or installation for viewers — just a browser

Architecture Overview

sshx is written in Rust. The client binary spawns a local pseudo-terminal and establishes an encrypted WebSocket connection to a relay server. The relay forwards messages between participants without decrypting them. The browser frontend is a lightweight TypeScript application using xterm.js for terminal rendering and a custom canvas for cursor display.

Self-Hosting & Configuration

  • Install the client with the one-line curl installer or build from source with Cargo
  • Self-host the relay server using the provided Docker image for private deployments
  • Set the SSHX_SERVER environment variable to point the client at your own relay
  • Use sshx --shell <path> to choose a specific shell (bash, zsh, fish)
  • Session links expire automatically after disconnect; no persistent data is stored

Key Features

  • End-to-end encryption ensures the relay server never sees plaintext terminal data
  • Infinite canvas lets participants open multiple terminal panes side by side
  • Real-time multiplayer cursors with names for easy collaboration
  • Cross-platform client for Linux, macOS, and Windows
  • No sign-up or browser extension required for viewers

Comparison with Similar Tools

  • ttyd — serves a terminal to the browser but does not support multiplayer cursors or end-to-end encryption
  • tmate — terminal sharing over SSH; sshx uses the browser and adds visual multiplayer features
  • VS Code Live Share — full IDE sharing; sshx is terminal-only and much lighter
  • tmux shared sessions — requires SSH access for all participants; sshx works via a browser link

FAQ

Q: Is the public relay server safe to use? A: Sessions are end-to-end encrypted. The relay cannot read terminal content. For extra control, self-host the relay.

Q: Can I restrict who joins my session? A: The URL acts as the access token. Only share it with intended participants. Self-hosted relays can add network-level restrictions.

Q: Does sshx support copy-paste? A: Yes. Standard browser clipboard shortcuts work inside the terminal pane.

Q: What happens if the host disconnects? A: The session ends and the link becomes invalid. No data persists on the relay.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产