Open-source project
trzsz/trzsz-ssh avatar
trzsz/trzsz-ssh

trzsz-ssh: a Go SSH client that keeps its own Kerberos, OTP and known hosts code, with a Makefile that prefers an external gotest

trzsz-ssh ( tssh ) is an ssh client designed as a drop-in replacement for the openssh client. It aims to provide complete compatibility with openssh, mirroring all its features, while also offering additional useful features. Such as login prompt, batch login, remember password, automated interaction, trzsz, zmodem(rz/sz), udp mode like mosh, etc.

2,794 stars164 forksGoMIT

At a glance

What is it?
trzsz/trzsz-ssh, shipped as tssh, sets out to be a drop-in replacement for the OpenSSH client and adds a login prompt, batch login, zmodem and a mosh style UDP mode. The interesting parts are in the dependency list and the build file: the client links its own Kerberos, one time password and known hosts implementations, and the test target quietly swaps in a different binary when one is on PATH.
Who is it for?
Treat tssh as a promising but young client: the newest stable tag is v0.1.26 from 2026-07-26, a rolling dev build is newer than that, and the last push was 2026-09-12. It suits someone who already knows OpenSSH options and wants the extras, especially batch login and file transfer over an unstable link with tsshd installed on the server.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 14 days ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • trzsz/trzsz-ssh2,794 ★ · +67
Star history
Repository2026-09-302026-11-24
trzsz/trzsz-ssh2.7k2.8k

67 Stars in the last 55 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Fourteen feature rows and no mention of the generic -o option

The compatibility argument rests on one table with fourteen rows, each pairing an area of OpenSSH with the flags and configuration keywords the client implements. Pseudo TTY maps to `-t`, `-T` and `RequestTTY`; proxying to `-J`, `-W`, `ProxyJump` and `ProxyCommand`; multiplexing to `-M`, `-S`, `-O` with `ControlMaster`, `ControlPath` and `ControlPersist`; port forwarding to nine flags including `-L`, `-R` and `-D`. Authentication gets four keywords, and known hosts gets five.

What is missing from all fourteen rows is `-o`. That flag is how OpenSSH accepts any keyword not given its own letter, so a reader arriving with a config full of `Host` block settings has to infer the mapping from the keyword column rather than read it. The last row is honest in a smaller way: it is labelled Others and contains exactly one keyword, `EscapeChar`.

The table is therefore a claim about the enumerated surface, not about the whole client, and the honest reading of the compatibility promise is that it covers what is listed.

Every feature row links into a different README file

The extra features table has eighteen rows, and each cell is a link rather than a description. Login Prompt, Custom Theme, Trzsz, Zmodem, Support scp sftp, Batch Login, Group Labels, Automated Interaction, Remember Password, Custom Configuration, Comments of Config, Wayland Integration, Clipboard Integration, SSH Console, Other Features, Reconnect Mode, UDP Mode and UDP Port Forwarding are all names in a table.

The links are where the file structure shows through. The English column points into README.en.md with an anchor per feature, and the Chinese column points into README.cn.md with percent encoded anchors. The tree holds all three files, README.md, README.en.md and README.cn.md, so a reader who opens the root README and clicks a row lands in a sibling file rather than scrolling the page they are on. The feature text itself, the option names, the shortcuts and the caveats, is not in the table and not in the section that introduces it.

That layout is a deliberate split between a short landing page and two full documents. It is worth knowing before you conclude the project says nothing about batch login or the UDP mode, because the table only names them.

Homebrew ships it as trzsz-ssh while every other name is tssh

Installation starts with a naming warning. The package name in Homebrew is `trzsz-ssh`, while the command is called `tssh` everywhere else, so a search by one name will not find the other.

On Windows the page lists three package managers and gives each its own command:

sh
scoop install tssh
sh
winget install tssh
sh
choco install tssh

All three install under the short name. The rest of the installation section is not visible here, and the page does not state, in the part shown, which platforms the other packages cover or what a manual install consists of. What it does fix is the naming convention: the project is trzsz-ssh, the executable is tssh, and only the Homebrew package deviates.

For a Homebrew install of this project, use `brew install trzsz-ssh` and invoke the installed binary as `tssh`. Homebrew’s formula named `tssh` belongs to a different project.

Kerberos, one time passwords and known hosts live in the binary

The dependency list explains several table rows that would otherwise need external tools. GSSAPI authentication is backed by a Go Kerberos library at v8.4.4, so the credential exchange is handled inside the client instead of by a helper binary. The known hosts support, with keywords such as `StrictHostKeyChecking` and `HashKnownHosts`, is backed by a known hosts implementation rather than by the OpenSSH one. An OTP library appears in the list as well, which is consistent with the login prompt and automated interaction features doing two factor work themselves.

The rest of the list reads like a map of the extras table. A TUI stack on the v2 line of three libraries covers the login prompt, batch login and group labels; a shell escaping library covers remote command quoting; a pageant library and an iTerm2 library cover agent and terminal integration; a clipboard library covers clipboard integration; a terminal width library and an isatty library cover rendering.

Shipping all of that in process is the reason the binary carries its own SSH stack rather than shelling out. The cost is visible in go.mod, which requires Go 1.26.0.

Roaming and the UDP mode need a second project on the server

Intermittent connectivity is not a client only feature here. The opening of the README pairs the client with tsshd, a separate repository, and states that the two together support intermittent connections, roaming, and high latency links such as cellular data or unstable Wi-Fi. The extras table lists UDP Mode, described as mosh style, and UDP Port Forwarding as client features.

Read together, those lines mean the drop-in replacement claim applies to the SSH part, while the roaming part is a pair. A server that has not been prepared for tsshd gets an SSH session, not the roaming behaviour, and the client will not tell you which of the two you have. go.mod carries tsshd at v0.1.10, so the protocol the client speaks to the agent is a versioned dependency rather than a loose convention, which also means the client and the server side have to be near enough in version.

The reconnect mode listed next to UDP Mode is the softer fallback: it stays inside SSH and re-establishes the session, while the UDP path changes the transport.

make test prefers an external gotest binary without saying so

The Makefile is small and mostly predictable, with one line that surprises people. The test variable is computed by looking for a program named gotest on PATH and falling back to the go tool:

make
GO_TEST := ${shell basename `which gotest 2>/dev/null` 2>/dev/null || echo go test}

So the test target runs `-v -count=1 ./...` through whichever binary answers to that name. On a machine where a standalone gotest is installed, results come from that program; on a machine without it, they come from the go toolchain. The target never reports which one it picked, and the flag set is written once for both, so a difference in behaviour between the two has to be diagnosed by hand.

The rest of the file follows a straightforward shape. `go build -o ./bin/ ./cmd/tssh` names the binary after the command directory, a clean target iterates the bin directory, and install copies the result to /usr/bin honouring DESTDIR, while on Windows the install target prints that it is not supported and the remove command switches to PowerShell.

A 0.1 version line with a rolling dev build newer than the last push

Release numbering is the quiet signal in this repository. The stable tags are v0.1.26 dated 2026-07-26 and v0.1.25 dated 2026-05-03, so the project is still in a zero series while claiming complete OpenSSH compatibility in its opening paragraph. Between the two sits a rolling tag named dev, described as a development build from the main branch and dated 2026-10-03, which is later than the last push recorded on 2026-09-12.

Two mechanisms produce those artifacts. A goreleaser configuration at the root handles packaging, and a debian directory holds packaging for Debian based targets, which fits a client distributed under a permissive MIT licence with no runtime dependencies. The tree also holds a Makefile for building from source, and the two paths coexist: a release binary and a locally built tssh are the same program reached differently.

For adoption decisions, the useful fact is the shape of the curve rather than the count of tags: several releases a year, a 0.1 line, and a channel that moves faster than the stable tags.

The client command lives in cmd/ while its library lives in tssh/

The build target declares its inputs as the Go files under ./cmd/tssh and ./tssh/ together with go.mod and go.sum, which describes the package layout in one line. The command entry point sits in cmd/tssh, and the second directory named tssh at the repository root holds the library half, with internal/ for unexported packages.

That split matters for anyone embedding the client instead of shelling out to it. A dependency on the library gives the option parser, the config reader, the terminal interface and the transport as code you can call, and it also means the Go 1.26.0 requirement and the whole dependency list become your dependency list too. A dependency on the binary gives you an OpenSSH shaped command line and nothing else.

The fork of the config parser listed in go.mod is the trzsz ssh_config library, and the extras table includes a comments feature for configuration files, which is the kind of thing a forked parser makes possible.

Editorial conclusion

Treat tssh as a promising but young client: the newest stable tag is v0.1.26 from 2026-07-26, a rolling dev build is newer than that, and the last push was 2026-09-12. It suits someone who already knows OpenSSH options and wants the extras, especially batch login and file transfer over an unstable link with tsshd installed on the server. Before switching your daily client, check three things. The compatibility table never mentions the generic -o option, so the mapping from your existing ssh_config to this client is not documented row by row. The credential handling, including the remember password feature and the in process Kerberos and one time password code, is not described. And the package name differs by installer, since Homebrew ships trzsz-ssh while the binary is tssh everywhere else. Licence is MIT.

Frequently asked questions

What is trzsz-ssh tssh and what does it replace?

It is an SSH client written to be a drop-in replacement for the OpenSSH client, mirroring OpenSSH features and adding a login prompt, batch login, remember password, automated interaction, trzsz, zmodem, scp and sftp support, clipboard and Wayland integration, reconnect mode and a UDP mode in the style of mosh. The project is MIT licensed and the executable is tssh.

How do I install trzsz-ssh on Windows?

Through scoop, winget or choco, each installing under the short name: scoop install tssh, winget install tssh, choco install tssh. The one naming exception is Homebrew, where the package is called trzsz-ssh while the command stays tssh.

What does the trzsz-ssh compatibility table cover?

Fourteen areas of OpenSSH, from pseudo TTY through multiplexing, agent forwarding, X11, authentication, known hosts and port forwarding, each with the flags and configuration keywords implemented. The table does not mention the generic -o option, and it ends with a row labelled Others that contains only EscapeChar.

Does tssh support roaming on a bad connection?

Roaming needs the separate tsshd project on the server side, and the two together are described as supporting intermittent connectivity and high latency links such as cellular data or unstable Wi-Fi. The client alone gives an SSH session; the reconnect mode in the feature table stays inside SSH as the softer fallback.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. trzsz/trzsz-ssh on GitHub

Was this useful?