Operations 4 min read

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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Deploy and Use rtty for Web‑Based Remote Linux Management

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 # CentOS

Clone rtty Repository

git clone --recursive https://github.com/zhaojh329/rtty.git

Build

cd rtty && mkdir build && cd build
cmake .. && make install

Configure 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: 34762d07637276694b938d23f10d7164

Use Token

$rttys -t 34762d07637276694b938d23f10d7164

Access 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/devid2

Transfer Files to Remote Device

rtty -R

Transfer Files from Remote Device

rtty -S test.txt
GoCLinuxVueremote terminalrttyweb-access
MaGe Linux Operations
Written by

MaGe 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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.