Deploy and Use rtty for Web‑Based Remote Linux Management
This guide explains how rtty combines a lightweight C client, a Go server, and a Vue front‑end to provide web‑accessible terminals for remote Linux device maintenance, covering its key features, installation steps, token generation, and browser‑based access.
rtty consists of a client written in pure C, a server implemented in Go, and a front‑end built with Vue. It enables web access to device terminals anywhere, distinguishing devices by their IDs, making it ideal for remote Linux maintenance.
Features
Client implemented in C, very small and suitable for embedded Linux
Remote batch command execution
Supports SSL: OpenSSL, mbedtls, CyaSSL (wolfssl)
SSL mutual authentication (mTLS)
Convenient file upload and download
Device‑specific access via device ID
HTTP proxy support for accessing devices via the web
Full‑featured terminal based on Xterm.js Simple deployment and easy to use
Demo
Deploy Server
Install Dependencies
sudo apt install -y libev-dev libssl-dev # Ubuntu, Debian
sudo pacman -S --noconfirm libev openssl # ArchLinux
sudo yum install -y libev-devel openssl-devel # CentOSClone rtty Repository
git clone --recursive https://github.com/zhaojh329/rtty.gitBuild
cd rtty && mkdir build && cd build
cmake .. && make installConfigure Parameters
sudo rtty -I 'My-device-ID' -h 'your-server' -p 5912 -a -v -d 'My Device Description'Generate a Token
$ rttys token
Please set a password:******
Your token is: 34762d07637276694b938d23f10d7164Use Token
$rttys -t 34762d07637276694b938d23f10d7164Access via Browser
Open a web browser and go to http://your-server-host:5913, then click the connect button.
Or connect directly without web login (requires server‑side whitelist):
http://your-server-host:5913/connect/devid1
http://your-server-host:5913/connect/devid2Transfer Files to Remote Device
rtty -RTransfer Files from Remote Device
rtty -S test.txtMaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
