In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use the terminal sharing artifact tmate in linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn how to use the terminal sharing artifact tmate in linux.
The tmate tool is a branch of tmux that uses the same configuration information to configure. It is a terminal multiplexer with the ability to share terminals instantly, allowing you to create and manipulate multiple terminals in a single screen, and to share them with others.
How does tmate work?
When you run tmate, a ssh connection to tmate.io, a background server maintained by tmate developers, is created in the background through libssh. The ssh key of the tmate.io server is verified by DH exchange. The client is authenticated by the local ssh key. After the connection is created, the local tmux server generates a 150-bit (unguessed random character) session token. Teammates can connect to tmate.io through a user-provided SSH session ID.
Prerequisites for using tmate
Because the tmate.io server needs to authenticate the client with a local ssh key, one of the prerequisites is to generate the SSH key key. Remember, each system must have its own SSH key.
$ssh-keygen-t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/ home/magi/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again:Your identification has been saved in / home/magi/.ssh/id_rsa.Your public key has been saved in / home/magi/.ssh/id_rsa.pub.The key fingerprint is:SHA256:3ima5FuwKbWyyyNrlR/DeBucoyRfdOtlUmb5D214NC8 magi@magi-VirtualBoxThe key's randomart image is:+--- [RSA 2048]- -- + |. | |. . = o | | * ooS=. + o | |. =. @ * o.o.+ E. | | = o==B++o =. | o.roomroomostatic.. . | |.. ointosh. | | +-[SHA256]-+ how to install tmate |
Tmate is already included in the official repository of some distributions and can be installed through the package manager.
For Debian/Ubuntu, you can use the APT-GET command or the APT command to to install.
$sudo apt-get install software-properties-common$ sudo add-apt-repository ppa:tmate.io/archive$ sudo apt-get update$ sudo apt-get install tmate
You can also install tmate from the official warehouse.
$sudo apt-get install tmate
For Fedora, use the DNF command to install.
$sudo dnf install tmate
For Arch Linux-based systems, use the Yaourt command or the Packer command to install from the AUR repository.
$yaourt-S tmate
Or
$packer-S tmate
For openSUSE, use the Zypper command to install.
$sudo zypper in tmate how to use tmate
After a successful installation, open the terminal and type the following command, which will open a new session. At the bottom of the screen, you can see the ID of the SSH session.
$tmate
Note that the SSH session ID disappears in a few seconds, but never mind, you can get these details with the following command.
$tmate show-messages
The show-messages command for tmate displays the log information for tmate, which contains the contents of the ssh connection.
Now, share your SSH session ID with your friends or colleagues to allow them to watch the terminal session. In addition to SSH session ID, you can also share web URL.
You can also choose whether to share a read-only session or a read-write session.
How to connect to a session through SSH
Just run the SSH terminal ID you got from a friend on the terminal. Something like this.
$ssh session: how ssh 3KuRj95sEZRHkpPtc2y6jcokP@sg2.tmate.io connects to a session through Web URL
Just open the browser and visit the URL given to you by your friend. Like down there.
Just type exit to exit the session.
[Source System Output] [exited] [Remote System Output] [server exited] Connection to sg2.tmate.io closed by remote host . Connection to sg2.tmate.io closed . The above is all the contents of the article "how to use the Terminal sharing artifact tmate in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.