ubutnu 上安装tmate-slave 和tmate

安装时如果提示libmsgpack和libssh版本过低,这是需要手动安装或更换apt源

1.安装msgpack

wget https://github.com/msgpack/msgpack-c/releases/download/cpp-1.3.0/msgpack-1.3.0.tar.gz
tar zxf msgpack-1.3.0.tar.gz 
cd msgpack-1.3.0 
./configure --prefix=/usr 
sudo  make -j8 
sudo make install

2.安装libssh

sudo add-apt-repository ppa:kedazo/libssh-0.7.x
sudo apt-get update
sudo apt install libssh-dev

3. 安装tmate-slave

sudo apt install git-core build-essential pkg-config libtool libevent-dev libncurses-dev zlib1g-dev automake libssh-dev cmake ruby
git clone https://github.com/tmate-io/tmate-slave.git && cd tmate-slave
./create_keys.sh # This will generate SSH keys, remember the keys fingerprints.
./autogen.sh && ./configure && make -j8
开启tmate-slave服务
sudo tmate-slave/tmate-slave -p 522 -h 172.18.8.12 -k tmate-slave/keys

4.安装tmate

(1). apt安装

sudo apt install tmate

(2). 下载编译好的

wget https://github.com/tmate-io/tmate/releases/download/2.2.1/tmate-2.2.1-static-linux-amd64.tar.gz

(3).连接服务器

使用自己搭建的服务器,需要设置配置文件 ~/.tmate.conf

set -g tmate-server-host "172.18.8.12"
set -g tmate-server-port 522
set -g tmate-server-rsa-fingerprint   "tmate-slave create_keys.sh创建"
set -g tmate-server-ecdsa-fingerprint "tmate-slave create_keys.sh创建"
set -g tmate-identity ""        # Can be specified to use a different SSH key.

你可能感兴趣的:(ubutnu 上安装tmate-slave 和tmate)