部署远程控制台访问服务Rttys,第二部分客户端(安装Rtty)

安装Rtty之前要先创建CMAKE编译环境,请查看第一篇文章:

部署远程控制台访问服务Rttys,第一部分客户端(安装CMAKE)

安装客户端RTTY 

一、下载安装包

github下载最新版安装包:

https://gitee.com/zhaojh329/rtty/tree/master

注:github地址下载的文件不全,因为目录

/home/rtty/src/buffer、/home/rtty/src/log、/home/rtty/src/ssl是外挂目录,不能通过git命令一起下载下来,所以,在使用git下载代码时要注意,分别下载以上三个项目,将他们放入到rtty代码指定位置,具体位置和github的文档结构要一致。都在rtty/src目录下。

上传rtty文件夹到/home目录下

二、通过CMAKE编译Rtty

cd /home/rtty/build
然后执行
cmake .. && make install 

三、运行Rtty

执行
nohup  /usr/local/bin/rtty -I '81' -h '192.*.80' -a -v -d '168.81的WebShell' > /home/rtty/rtty-output.log 2>&1 & 

说明:

-I '81':对客户端设置的id

-h 192.*.80:rttys服务所在地址

-p:默认端口22,可不写

-d '168.81的WebShell':对客户端的说明

> /home/rtty/rtty-output.log 2>&1 &:指定日志生成路径,并后台运行

命令行选项

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

四、查看服务运行情况

查看服务pid
pgrep -fl rtty
ps -ef | grep rtty
重启
停止
kill PID 

部署远程控制台访问服务Rttys,第三部分服务端(安装Rttys) 

  • 5
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值