Motty
原生桌面 SSH 工作台:终端、SFTP/SCP、端口转发、VNC 与 RDP 远程桌面、AI 助手都在一个窗口里。Go 编写,没有 Electron,空闲时保持安静。免费开源,支持 macOS、Windows 和 Linux。
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
Guarded remote execution and file transfer for scripts and agents, built on native OpenSSH.
翻译准备中
正在加载完整 README。
查看完整 README ↗VSSH turns native OpenSSH into a predictable automation contract.
OpenSSH already solves secure remote access. VSSH keeps its transport,
authentication, host verification, configuration, and command language intact,
then adds the operational guarantees that scripts and agents otherwise have to
rebuild around every ssh and scp call.
| Capability | SSH / SCP | VSSH |
|---|---|---|
| Secure transport | Native OpenSSH authentication, encryption, host verification, known_hosts, and SSH-agent behavior | Uses that same native OpenSSH path; VSSH does not replace or emulate SSH |
| Remote commands | Runs familiar shell, Linux, Docker, and systemd commands | Runs the same commands with no VSSH-specific remote language |
| Target selection | Repeat connection flags or maintain an OpenSSH host alias | Save one default target, then override host, user, identity, or port per call |
| Terminal behavior | Streams stdin, stdout, and stderr; supports TTYs and returns the remote exit code | Preserves streaming, stdin, TTY, signals, and the remote exit code in raw mode |
| Automation output | Build and maintain wrappers to separate streams, time execution, detect timeout, and serialize a result | --json emits one bounded object with stdout, stderr, exit code, duration, timeout state, and signal when applicable |
| Catastrophic-command guardrails | Sends the command as written | Blocks recognizable root deletion, direct disk writes, destructive volume cleanup, firewall flushes, and shutdown patterns before connecting |
| File transfer with permissions | Coordinate scp with a separate ssh chmod call and reconcile failures | upload --mode <octal> performs both as one reported operation and fails if either phase fails |
| Connection diagnosis | Check binaries, configuration, identity, and reachability separately | vssh doctor verifies the complete path, including a real connection |
| Audit trail | Add shell history or custom logging, often capturing sensitive command content | Writes owner-only outcome metadata and a command hash; never command text, output, credentials, or file contents |
| Repeated-call latency | Configure OpenSSH multiplexing yourself | Reuses a short-lived OpenSSH control connection when possible |
| Agent discovery | Parse help text and infer aliases or argument shapes | commands --json exposes a versioned, machine-readable command contract |
That is the product boundary: familiar SSH security and commands underneath; a consistent remote-operations contract above them.
If you know SSH, you already know the command model:
# OpenSSH
ssh deploy@prod 'systemctl is-active api'
# VSSH after one-time setup
vssh 'systemctl is-active api'
The quoted text is not a VSSH-specific language. It is the same remote shell
command you would give to ssh: Linux, Docker, systemd, and shell commands all
remain unchanged.
Use plain ssh for an interactive session or an isolated one-off. Use VSSH when
a script or agent needs to repeat remote work with predictable results,
diagnostics, transfers, guardrails, and privacy-safe evidence. The guardrails
are not a sandbox or authorization boundary.
npm install -g @light-merlin-dark/vssh
vssh --setup # save the host, user, identity, and port
vssh doctor # verify the complete connection path
vssh uptime # run uptime on the configured remote host
vssh --json 'systemctl is-active api'
vssh upload --mode 600 ./app.env /etc/app/app.env
Configuration is stored at ~/.vssh/config.json with owner-only permissions.
vssh '<remote command>' # run through native ssh
vssh --json '<remote command>' # capture one structured result
vssh upload <local> <remote> # send through native scp
vssh download <remote> <local> # retrieve through native scp
vssh doctor # diagnose setup and connectivity
docker, systemctl, journalctl, find, and similar names in the examples
below are programs on the remote machine—not VSSH subcommands.
ssh and scpssh-agent, or a working OpenSSH host aliasWindows is not currently supported.
Start with vssh doctor for a readable diagnosis or vssh doctor --json for
automation. It checks that ssh and scp exist, the configuration and identity
path are usable, and the target accepts a real connection.
VSSH preserves native failure behavior instead of hiding it:
success: false, exitCode,
stdout, and stderr.timedOut: true in JSON mode.Pass one quoted shell command when it contains pipes, redirects, variables, or other shell syntax:
vssh uptime
vssh 'df -h / && free -h'
vssh 'docker ps --format "{{.Names}}\t{{.Status}}"'
vssh -c 'journalctl -u api --since "10 minutes ago" | tail -100'
Multiple ordinary arguments are shell-quoted before execution:
vssh printf %s 'hello world'
Use -- if a command name conflicts with a VSSH command:
vssh -- commands
Raw mode is the default. It connects the remote process directly to the terminal or pipeline:
printf 'uptime\n' | vssh 'bash -s'
vssh 'docker logs -f api --tail 50'
vssh --tty 'sudo systemctl status api'
VSSH returns the remote process exit code. A timed-out command returns 124.
--json captures output and writes exactly one JSON object:
vssh --json --timeout 30 'systemctl is-active api'
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗