
简介
rtty 一款可以在任何地方都能通过 Web 访问您的设备的终端神器!
rtty 由客户端和服务端组成。客户端采用纯C实现,服务端采用 GO 语言实现,前端界面采用 vue 实现。使用 rtty 可以在任何地方通过 Web 访问您的设备的终端,通过 设备ID 来区分您的不同的设备。rtty 非常适合远程维护 Linux设备。
Ubuntu, Debian
sudo apt install -y libev-dev libssl-dev
ArchLinux
sudo pacman -S --noconfirm libev openssl
Centos
yum install -y libev-devel openssl-devel
git clone --recursive https://github.com/zhaojh329/rtty.git
cd rtty && mkdir build && cd build
cmake .. && make install
sudo rtty -I 'My-device-ID' -h 'your-server' -p 5912 -a -v -d 'My Device Description'
$ rttys token
Please set a password:******
Your token is: 34762d07637276694b938d23f10d7164
$rttys -t 34762d07637276694b938d23f10d7164
Usage: rtty [option]
-I, --id=string Set an ID for the device(Maximum 63 bytes, valid
character:letter, number, underline and short line)
-h, --host=string Server's host or ipaddr(Default is localhost)
-p, --port=number Server port(Default is 5912)
-d, --description=string Add a description to the device(Maximum 126 bytes)
-a Auto reconnect to the server
-s SSL on
-C, --cacert CA certificate to verify peer against
-x, --insecure Allow insecure server connections when using SSL
-c, --cert Certificate file to use"
-k, --key Private key file to use"
-D Run in the background
-t, --token=string Authorization token
-f username Skip a second login authentication. See man login(1) about the details
-R Receive file
-S file Send file
-v, --verbose verbose
-V, --version Show version
--help Show usage
使用 Web 浏览器访问您的服务器:http://your-server-host:5913,然后点击连接按钮。
或者直接连接设备,无需 Web 登录(需要在服务端配置设备白名单)
http://your-server-host:5913/connect/devid1
http://your-server-host:5913/connect/devid2
rtty -R
rtty -S test.txt



推荐阅读 点击标题可跳转
这 Nginx 日志分割方案太及时了!解决我司多年的难题
浏览不良网站一定会有记录吗?小心被叫去喝茶
百度,这下要歇菜了?网友们都在声讨它...
弃用 Docker kill,事实证明,它更牛逼!
太突然!国风知名企业线下门店全部关闭
快播宣告破产!彻底倒闭了
微信新功能冲上热搜,网友们吵翻了