tmate 是一个基于 tmux 的远程终端共享工具,可以让你快速通过 SSH 或 Web 方式将你的终端分享给别人,非常适合远程协助或教学场景。
基本命令格式
1
tmate [options]
tmate help
mvpbang@mvpbang ~ % tmate -h
Usage: tmate [options] [tmux-command [flags]]
Basic options:
-n <name> specify the session token instead of getting a random one
-r <name> same, but for the read-only token
-k <key> specify an api-key, necessary for using named sessions on tmate.io
-F set the foreground mode, useful for setting remote access
-f <path> set the config file path
-S <path> set the socket path, useful to issue commands to a running tmate instance
-v set verbosity (can be repeated)
-V print version