Sometimes you need to quickly share your terminal with someone — for debugging, pair programming, or helping a colleague.
Instead of setting up SSH access or screen sharing, you can use tmate.
tmate is a fork of tmux that allows you to share your terminal session over the internet.
Run the following command on the server you want to share:
tmate
After running the command, tmate will create a shared session and display connection links.
Connecting to ssh.tmate.io...
Note: clear your terminal before sharing readonly access
web session read only: https://tmate.io/t/ro-ptJWCzDvxntCGkfhZSU37HrXg
ssh session read only: ssh ro-ptJWCzDvxntCGkfhZSU37HrXg@lon1.tmate.io
web session: https://tmate.io/t/JH3vTLhbGeUfX8TPdZCTCx4Yr
ssh session: ssh JH3vTLhbGeUfX8TPdZCTCx4Yr@lon1.tmate.io
Press q or Сtrl-c to continue
Then run the following command from another machine:
ssh JH3vTLhbGeUfX8TPdZCTCx4Yr@lon1.tmate.io
That's it.
Now multiple users can work in the same terminal session in real time.
P.S. tmate is a fork of tmux that adds the ability to share terminal sessions over the internet. If you're interested in tmux, I wrote about it here.
Top comments (0)