当前位置: 首页 > 工具软件 > tmate > 使用案例 >

linux tmate 即使分享终端回话、内网穿透、ssh远程家里的linux

农建弼
2023-12-01

1. tmate官网地址

tmate

2. 源码安装tmate

tmate源码地址

这里环境为centos 7.2

# yum install git
git clone https://github.com/tmate-io/tmate.git

# unzip tmate-master.zip
# cd tmate-master
安装依赖
# yum install -y cmake pkg-config libtool libevent-dev libncurses-dev libssl-dev zlib1g-dev libevent-devel(ubuntu是libevent-dev)

# yum install glibc-static ncurses-devel

# ./autogen.sh
# ./configure
缺少什么依赖包就安装什么

msgpack下地址
https://centos.pkgs.org/7/epel-x86_64/msgpack-1.4.1-1.el7.x86_64.rpm.html

msgpack-1.4.1-1.el7.x86_64.rpm

# rpm -ivh msgpack-1.4.1-1.el7.x86_64.rpm

configure: error: "msgpack >= 1.1.0 not found" 还是报错

3. debian 下载安装包安装

#cat /etc/os-release 

PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2017.3"
VERSION_ID="2017.3"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.kali.org/"
SUPPORT_URL="http://forums.kali.org/"
BUG_REPORT_URL="http://bugs.kali.org/"
#uname -a
Linux localhost 3.10.61-user-gcdd563f-cI088c136 #2 SMP PREEMPT Sat May 27 15:30:54 CST 2017 aarch64 GNU/Linux
#apt-get install tmate

安装软件
libmsgpackc2 libssh-4 tmate

4. tmate使用

#ssh-keygen
选择密钥保存位置
设置密码
生成密钥成功

参考:
1.tmate:秒级分享你的终端会话

 类似资料: