Also create a group (we will name it tmux_group).ĭon’t forget to add both your and pair accounts to the group tmux_group.Īdd your client’s public key to the authorized keys file ( ~/.ssh/authorized_keys). For safety reasons (limited privileges) I suggest adding another user in your OS, in this tutorial we will call him pair. To do that we will need an SSH server running ( OpenSSH) and an user. So far we have only attached tmux to the local sessions, to see it’s full potential lets connect from a different machine to our local session. Lastly tmux exits when the last window of the last session is closed. Moreover several tmux terminals can join the same session, so you can easily share your work over multiple clients (for example: pair programming sessions). Thanks to the tmux architecture sessions are persistent: any accidential disconnection or detaching won’t destroy the session (and save your work). To attach to a session there are several aliases at your disposal: To detach from the current session use the command shortcut (default ctrl+b) followed by d or followed by : and type detach. ![]() ![]() Tmux is based on a client-server architecture – running tmux for the first time will start a server with one session and automatically attach to that session. ![]() I suggest you to read the previous post before further reading. In the recent post ( Terminal Unleashed) I’ve introduced a great tool that makes terminal work easier and faster – tmux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |