ctty

zsuroy·zsuroy.ctty

Terminal UI that manages SSH, serial, telnet, SFTP, FTP, WebDAV and S3 connections.

ctty is a single-binary terminal connection manager. It reads an existing OpenSSH configuration and adds serial, telnet, SFTP, FTP, WebDAV and S3 clients beside it, so hosts already configured for ssh can be browsed, searched and connected to from one interface. Saved sites are stored as separate JSON files and passwords are kept in a local AES-256-GCM credential vault under %APPDATA%\ctty. Each protocol also has a non-interactive subcommand with JSON output for use from scripts. This package installs the Windows console binary, so it runs in Windows Terminal, PowerShell, cmd, or any other terminal rather than in its own window.

winget install --id zsuroy.ctty --exact --source winget

Latest 1.4.3·December 3, 2026

Release Notes

Added

  • πŸ—‚οΈ One config directory for every protocol β€” on Windows config.json, history and credentials lived in %APPDATA%\ctty while every protocol store and quick-command file went to ~/.config\ctty, so a backup silently missed half the settings. Saved snippets were worse: they were pinned to ~/.config/ctty on every platform and ignored XDG_CONFIG_HOME entirely, so a Unix user who set it had them stranded outside the directory the app read. All of these are now moved into the active directory on startup, where an existing file is never replaced; XDG_CONFIG_HOME still selects the directory on Unix, and Windows keeps using %APPDATA%.
  • πŸ’Ύ Sort order is remembered and search is wider β€” s/r/n no longer reset on relaunch; search now matches port, ProxyJump, ProxyCommand, identity file, identity agent and remote command too. Fixed
  • πŸ“₯ Transfers no longer save truncated or misdirected files β€” a proxy that rewrote Content-Length along with a short body was renamed into place and reported as success; the byte count is now checked against Stat for WebDAV and the listing /HEAD for S3, which also covers chunked responses with no length. Remote entry names containing ../ are rejected instead of escaping the download directory, SFTP writes go through a temp file and rename, and cancelling a stalled transfer no longer deadlocks.
  • πŸ›‘οΈ Operations report their real outcome β€” WebDAV/S3 RemoveAll/MkdirAll/Rename failures were discarded behind a success toast, a failed config.json save, host delete or move returned silently to the list, and an FTP upload reported an error when a concurrent mkdir had simply won the race. Backup now reports files it could not read, restore --overwrite keeps a .bak of each replaced file, and a damaged config.json is preserved as config.json.corrupt- instead of being wiped.
  • πŸ”‘ SFTP honors StrictHostKeyChecking and UserKnownHostsFile β€” both were ignored for unconditional trust-on-first-use into a hardcoded ~/.ssh/known_hosts. The effective ssh -G values now apply: yes rejects unknown keys without writing, no/off skip verification, and ask keeps TOFU since a TUI cannot prompt. A failed bastion connection also no longer re-prompts for the target's password.
  • πŸ“Ί Telnet reports its window size β€” the client answered WONT NAWS to DO NAWS, so compliant servers never asked and less/vim saw stale dimensions; it now accepts DO NAWS, pushes every resize, and stores them atomically.
  • ⌫ Non-ASCII input survives β€” the FTP/WebDAV/S3 password fields and SFTP mkdir/rename/passphrase fields cut UTF-8 bytes and filtered to ASCII, so Chinese or emoji passwords failed and non-ASCII names could not be typed.
  • πŸ–₯️ The startup probe no longer flashes garbage in VS Code, JetBrains or Git Bash β€” the glyph-width probe wrote sample emoji and cursor-position queries on the primary screen before the TUI started, and in VS Code (especially over Remote-SSH) that burst stayed visible as garbage until the alternate screen took over. It now runs inside CSI ?1049h/?1049l, so JediTerm and mintty are covered by the same window. On Windows the probe also enables virtual-terminal processing on CONOUT$ first, since Bubble Tea normally does that and these terminals would otherwise paint the escapes literally, and it flushes leftover cursor-position reports so a reply that lands after the 2s timeout cannot reach the TUI as typed input. Classic ConHost is still not probed.
  • 🌐 WebDAV "skip certificate check" keeps HTTP(S)_PROXY β€” the custom TLS transport discarded proxies; it now clones the platform defaults.
  • ⏳ A silent SSH peer no longer hangs the host check or SFTP connect, and connecting can be cancelled β€” after TCP connected, the handshake had no deadline (ssh.ClientConfig.Timeout is ignored by NewClientConn and by ssh.Dial), so a tarpit or fake-ip sinkhole left a ping on "connecting" forever and froze SFTP, including through ProxyJump. The ping handshake now uses the ping timeout and a timed-out ping is offline. SFTP bounds the TCP connect and each hop's handshake and reports "ssh handshake with X timed out after N" while closing earlier hops. Esc/q/Ctrl+C on the "Connecting SFTP…" screen now aborts the dial at once (and kills a ProxyCommand child) instead of waiting out the timeout, and put/get/sftp … abort on Ctrl+C with exit status 130; a cancel is never offered as a password retry. The timeout is the host's SSH ConnectTimeout (seconds or 30s/1m, default 15s when unset, 0 or invalid), and --connect-timeout on sftp, put, get and scp overrides it. sftpconfig.Connect* now take a context.Context.
  • πŸšͺ Port forwarding validates on Ctrl+S β€” the shortcut bypassed validation, passing an invalid port to ssh and exiting the TUI.
  • βœ… Windows test suite is green β€” six tests failed or hung on Unix paths, config-directory isolation and file modes, and shell completion deadlocked on an undrained pipe; go test ./cmd/... now finishes in about a second instead of timing out after 580s.

Installer type: zip

x86β€”F3E89C6BB7EFC3C16A002720FD90E778B0A6A6033867423C34E72E36213A5EA5
x64β€”463C7AEEDFB2E482EBF0C31D822D24F8C600605FBBC0D5B3910FD21CB684EA72

Details

Homepage
https://github.com/zsuroy/ctty
License
MIT
Publisher
zsuroy
Support
https://github.com/zsuroy/ctty/issues
Copyright
Copyright (c) 2026 zsuroy

Tags

ftpsftpsshtelnetterminaltuiwebdav

Older versions (6)

1.4.2
x86β€”AC02773F780A17F3246D507BF5C5FF7AB1C210D9BD09DCA35E4B1519EF5737A1
x64β€”48EDFD84062206BD6F620E4D32CB905E4E950BDA384361DAC399B039EF484418
1.4.1
x86β€”24F780FA243D57E0B027B6A86C15B97BCAACE142DD57FA9E6BB7ACB8DE2901D5
x64β€”2A718D9954008BF5FD6930DD816D30AF603369624BE31EA3102B82A7BB6A569F
1.4.0
x86β€”FD236117D95ED8EE22BFDB4D2BA0E179CC6E573EDCA24C068661688475D0D69D
x64β€”DFEC9D48E51912BA5EF1D0A7759DE754736847BBF5BC747562500D67B7E35E52
1.3.6
x86β€”C2859306240567A07F7797367A5D79E744E78A0F37A3597098937D6BDE1D5F42
x64β€”200BBA35CAEEFF10A70A3690890AAEFDCBAD433A72E7948F0BCA78E26709CA1F
1.3.5
x86β€”332218688430069B7A929EB74013EDEE44781230D7905B593CE62C09C2B62B99
x64β€”BB1D857D4A08CE6230DA926676B2E914444F576F22CC75150B3200B6C378C7FB
1.3.3
x86β€”8AF857069962A1410286C3F25494BE65C6018C88D06AD921728642A24F49DA9C
x64β€”7A31BB921D62A2BA25EFB1FA6FCA9490ABA087AE4E8FDA5E8336DD8FABF346D7