Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
ctty

ctty

> DevOps
Free

A lightweight, all-in-one connection manager — SSH, Serial, SFTP, Telnet and FTP in a single TUI

115 stars0 likes3 views
GitHub

About

A lightweight, all-in-one connection manager — SSH, Serial, SFTP, Telnet and FTP in a single TUI

ctty - Connection Manager

English | 中文

A lightweight, all-in-one connection manager — SSH, serial, telnet, SFTP, and FTP in a single TUI

ctty is a fast, native terminal tool for managing all your connections — SSH hosts, serial devices, telnet endpoints, SFTP file transfers, and FTP sites — without the overhead of Electron apps. Built with Go and featuring an intuitive TUI interface, it brings the convenience of GUI connection managers like Tabby to the terminal, with zero bloat.

Why ctty?

  • Tabby too heavy? ctty is a single ~5MB binary, no Electron, no browser engine — just pure Go

  • Need serial + SSH + SFTP + FTP in one tool? Most terminal emulators only do SSH; ctty covers them all

  • Native telnet client built in — no system telnet binary required (macOS dropped it, Windows and Termux need extras); IAC-aware with conservative negotiation

  • Want to stay in the terminal? No context switching between apps — everything is keyboard-driven

    ️ Click on the image to view in full size

✨ Features

Core Capabilities

  • ** Beautiful TUI Interface** - Navigate your SSH hosts with an elegant, interactive terminal UI and zero vertical layout jitter
  • ⚡ Quick Connect & Health Peek - Connect instantly with Enter or inspect real-time system metrics (uptime, CPU load, memory bar, root disk space) via Quick Peek (v / P) without opening a full shell
  • ** Multi-Select & Batch Exec** - Press Space to multi-select hosts with visual [ ] / [✓] checkboxes, Ctrl+A to select all, p to probe selected hosts, y to copy commands, and x to batch-execute remote snippets in parallel with an aggregated scrollable results modal
  • ** Unified Cross-Protocol Navigation** - Switch between SSH, Serial (t), Telnet (T), FTP (F), and Local File Browser (b) directly via hotkeys or [ / ] tabs without leaving your current view
  • ️ Tag Organization & Quick Drawer - Organize hosts with automatic color-coding (e.g., #prod in red, #dev in green); press w to open an interactive Tag Drawer with host counts and 1-key filtering (1-9), or use hidden tag to hide sensitive hosts
  • ** Direct Config Editing** - Press E to open your active SSH configuration directly in $EDITOR / $VISUAL (vim, nano, notepad) with automatic live config reload upon exit
  • ** Universal Clipboard** - Copy commands (y) seamlessly across local terminals, remote SSH sessions, and tmux via OSC 52 fallback
  • ** Port Forwarding** - Easy setup for Local, Remote, and Dynamic (SOCKS) forwarding with history persistence
  • ** Easy Management** - Add, edit, move, and manage SSH configurations seamlessly; typing in search and pressing a auto-fills the host name
  • ** Smart Search** - Find hosts quickly with real-time filtering across names, addresses, and #tags
  • ** Real-time Status** - Live SSH connectivity indicators with latency gradient colors ( 300ms / offline)
  • ** Serial Connections** - Manage and connect to serial devices (mcu, console, switch, router) with configurable baud rate, data bits, parity, and stop bits; auto-detected ports appear in the list instantly
  • ** Telnet Connections** - Native RFC 854 telnet client (no system telnet needed): save and manage lab equipment, console servers, and legacy devices; reachability probe with one keypress
  • ** SFTP File Transfer** - Full-featured SFTP browser (o key) with remote browsing, upload/download queue with progress and cancel, transfer bell (\a), search, mkdir/delete, plus headless CLI transfers (put/get/scp + sftp ls/mkdir/rm/rmdir/rename)
  • ** FTP Site Manager** - Plain-FTP support (F key) for hosts without SSH: tagged site inventory, dual-pane local|remote browser, mkdir/delete/rename in both panes, single/dual layout toggle, passwords in the encrypted vault, plus headless CLI transfers (ftp ls/get/put/mkdir/rm/rmdir/rename)
  • ️ Local File Browser - Standalone local filesystem manager (b key or ctty browse [path]): navigate, search, sort, mkdir/delete/rename with confirms, file details, open-with-default-app, reveal in file manager
  • ** Password Storage & Zero-Touch Auto-Login** - Save SSH passwords securely in a local AES-256-GCM encrypted vault (~/.config/ctty/credentials.json, 0600 permissions) with native OpenSSH SSH_ASKPASS protocol bridge (zero third-party dependencies, works on macOS, Linux, Windows, and Termux)
  • ️ Split-Pane & Small Terminal Friendly - All forms and dialogs (Add/Edit Host, Port Forwarding, Host Info, Help Menu, Quick Peek, Batch Exec) feature focus-following dynamic viewport scrolling with fixed headers/footers. Works flawlessly in tmux/Zellij splits, VS Code/JetBrains embedded terminals, and tiling WMs (i3/Sway) down to 8~12 lines with zero height blocking or truncation
  • ** Bilingual i18n & Settings UI** - Full English and Simplified Chinese support with automatic OS detection (macOS, Windows, Linux, Termux) and interactive in-TUI Settings menu (S key) to configure language, updates, and keybindings

️ Technical Features

  • ** Secure** - Works directly with your existing ~/.ssh/config file (credentials stored separately, never pollutes standard SSH configs)
  • ** Custom Config Support** - Use any SSH configuration file with the -c flag
  • ** Agent Skill & Headless CLI** - Agent skill for Cursor, Claude Code, and Codex; every operation available from the CLI without the TUI, with JSON output for scripts and agents
  • ** Host Import** - Migrate SSH profiles from Tabby with ctty import --from tabby
  • ** SSH Include Support** - Full support for SSH Include directives to organize configurations across multiple files
  • ⚙️ SSH Options Support - Add any SSH configuration option through intuitive forms
  • ** Automatic Conversion** - Seamlessly converts between command-line and config formats
  • ** Automatic Backups** - Backup configurations automatically before changes
  • ✅ Validation - Prevent configuration errors with built-in validation
  • ** ProxyJump/ProxyCommand Support** - Secure connection tunneling through bastion hosts
  • ⌨️ Keyboard Shortcuts - Power user navigation with vim-like shortcuts and universal Tab/Shift+Tab focus cycling
  • ** Cross-platform** - Supports Linux, macOS (Intel & Apple Silicon), Windows, and Android (Termux)
  • ⚡ Lightweight - Single binary with no dependencies, zero configuration required

Quick Start

Agent Skill

Teach Cursor, Claude Code, Codex, and other agents to use ctty (search hosts, run remote commands, list serial/telnet devices) without opening the TUI. This is separate from installing the ctty binary below.

bash
# Preview skills in this repo
npx skills add zsuroy/ctty --list

# Install into the current project (committed under .agents/skills/)
npx skills add zsuroy/ctty -y

# Install globally so every project can use it (recommended)
npx skills add zsuroy/ctty -g -y

-y skips prompts. -g installs to your user global skills dir. Default without -g is project-local.

bash
npx skills list          # see what is installed
npx skills remove ctty   # uninstall
npx skills update ctty   # pull the latest SKILL.md

The skill lives at skills/ctty/ in this repository.

Installation

Homebrew (Recommended for macOS):

bash
brew install zsuroy/ctty/ctty

Unix/Linux/macOS (One-line install):

bash
curl -sSL https://raw.githubusercontent.com/zsuroy/ctty/master/install/unix.sh | bash

Termux (Android):

bash
curl -sSL https://raw.githubusercontent.com/zsuroy/ctty/master/install/unix.sh | bash

The installer auto-detects Termux (via $PREFIX/$TERMUX_VERSION) and installs to $PREFIX/bin without sudo. On Termux it picks the cgo Android build, whose DNS goes through the system resolver (pure-Go builds fail on devices with Private DNS or stub resolvers); releases without Android assets fall back to the Linux build.

Windows (PowerShell):

powershell
irm https://raw.githubusercontent.com/zsuroy/ctty/master/install/windows.ps1 | iex

Alternative methods:

Linux/macOS:

bash
# Download specific release
wget https://github.com/zsuroy/ctty/releases/latest/download/ctty_Linux_x86_64.tar.gz

# Extract and install
tar -xzf ctty_Linux_x86_64.tar.gz   # contains the single "ctty" binary
sudo mv ctty /usr/local/bin/ctty

Windows:

powershell
# Download and extract
Invoke-WebRequest -Uri "https://github.com/zsuroy/ctty/releases/latest/download/ctty_Windows_x86_64.zip" -OutFile "ctty_Windows_x86_64.zip"
Expand-Archive ctty_Windows_x86_64.zip -DestinationPath C:\tools\
# Add C:\tools to your PATH environment variable

From source (requires Go 1.23+):

bash
git clone https://github.com/zsuroy/ctty.git
cd ctty
go build -o ctty .
sudo mv ctty /usr/local/bin/

Usage

Interactive Mode

Launch ctty without arguments to enter the beautiful TUI interface:

bash
ctty

Navigation & Host Actions:

  • ↑/↓ or j/k - Navigate hosts
  • Enter - Connect to selected host
  • v or P - Quick Peek host health stats (uptime, CPU load, memory %, disk % progress bars)
  • Space - Multi-Select toggle (auto-advances cursor down by 1 row)
  • Ctrl+A - Select all / deselect all visible hosts
  • Esc - Clear multi-selection (when active) or cancel/exit mode
  • y - Copy SSH command to clipboard (copies newline-separated commands for all selected hosts when multi-selection is active)
  • x - Remote command snippet execution (runs in parallel across all selected hosts when multi-selection is active)
  • p - Ping hosts to test latency (pings only selected hosts when multi-selection is active)
  • w - Open interactive Tag Filter Drawer (1-9 or Enter to filter, c to clear)
  • c - Clear active tag filter
  • E - Open active SSH configuration file directly in $EDITOR (vim/nano/notepad)
  • [ / ] - Switch to previous / next protocol tab (SSH ⇄ Serial ⇄ Telnet ⇄ FTP ⇄ Local Browser)
  • g / Home - Jump to first row
  • G / End - Jump to last row
  • 1-9 - Quick jump to row
  • a - Add new host (auto-fills search query if typing)
  • e - Edit selected host
  • d - Delete selected host
  • m - Move host to another config file (requires SSH Include directives)
  • i - Show host configuration info
  • f - Setup port forwarding
  • t - Open serial device manager
  • T - Open telnet device manager
  • o - Open SFTP file browser for selected host
  • F - Open FTP site manager
  • b - Open local file browser
  • S - Open Settings & Preferences (Language, Updates, ESC behavior)
  • U - Open self-update modal (when an update is available)
  • H - Toggle hidden hosts visibility
  • h - Open help screen
  • q - Quit
  • / - Search/filter hosts

Real-time Status Indicators:

  • Online - Low latency (300ms
  • ⚫ Unknown - Connectivity status not yet determined

Sorting & Filtering:

  • s - Cycle through all sort modes (Name ➔ Hostname ➔ Tags ➔ Last Login)
  • n - Sort by name (alphabetical)
  • r - Sort by recent (last login time)
  • Tab - Switch focus between search input and table
  • Type to search - Real-time filtering across name, hostname, and #tags

The interactive forms will guide you through configuration:

  • Hostname/IP - Server address
  • Username - SSH user
  • Port - SSH port (default: 22)
  • Identity File - Private key path
  • ProxyJump - Jump server for connection tunneling
  • ProxyCommand - Jump command for connection tunneling
  • SSH Options - Additional SSH options in -o format (e.g., -o Compression=yes -o ServerAliveInterval=60)
  • Tags - Comma-separated tags for organization

Serial Connections

Press t from the main TUI to enter the serial device manager. Available serial ports are auto-detected and listed immediately — no manual setup required for qu

Issues· 1 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

devopsterminaltui

No comments yet. Be the first to share.

> Details

PublishedSep 13, 2026
UpdatedSep 18, 2026
CategoryDevOps
PricingFree

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理