tmate implemented by python.
Project description
pytmate
什么是tmate
tmate是一款可以用于终端分享的工具,同时也提供了平台能力,用户可以使用平台将内网中的终端分享到外网访问。
什么是pytmate
tmate本身只支持类Unix系统(MacOS、Linux等),不支持Windows。而pytmate使用纯Python开发,可以支持全系统,使用也更加方便。
环境要求
- Windows 7以上(推荐使用
Windows 10 1809
以上,低版本不支持pty
) - Linux
- MacOS
Python版本要求>=3.6
安装
$ pip install tmate
如何使用
$ tmate
[TMateClient] Connect SSH server ssh.tmate.io:22...
[Notify] web session read only: https://tmate.io/t/ro-Q5VKGqmt24FxTnUqtdzCZHhtR
[Notify] ssh session read only: ssh ro-Q5VKGqmt24FxTnUqtdzCZHhtR@xxx.tmate.io
[Notify] web session: https://tmate.io/t/9bv76cP3W95ftZFbWtYtW4xJ7
[Notify] ssh session: ssh 9bv76cP3W95ftZFbWtYtW4xJ7@xxx.tmate.io
Web端访问终端可以在浏览器中打开web session:
后面的URL。
SSH访问可以使用ssh session:
后面的命令行。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tmate-0.1.2.tar.gz
(8.4 kB
view hashes)
Built Distribution
tmate-0.1.2-py3-none-any.whl
(8.4 kB
view hashes)