![]() ![]() The most important feature et has over mosh is that it supports the tmux control center flag, which you probably (hopefully!) know as tmux -CC. With a little Google-fu, I discovered the drop-in-replacement tool I’d been looking for - eternal terminal …and then there was et Now don’t get me wrong, mosh is great, but it has some shortcomings that had me yearning for something better. The only time you need to do anything is when one of the machines is restarted (reinitiate the mosh session, attach/create the tmux session) which, if you’re like me, is quite rare. ![]() Coupled with the session management of tmux, you will have a development environment automatically tolerant of any connectivity issues and system sleeping. Slick! This is especially important at my company where development typically takes place on a remote server which additionally requires two-factor authentication (2fa) to get access with mosh you only have to 2fa when you make the first connection. ![]() It will essentially keep your SSH session alive regardless of your network status, meaning that even if you put your computer to sleep it will reconnect as if you’d never left: when your connection drops the shell will appear to hang, but when it automatically reconnects all recorded output from the remote server will be delivered to your local terminal and all queued input from your terminal will be sent to the server. What is mosh? Well, it is essentially a drop-in replacement for ssh that is designed for development with spotty connections (hence mobile shell) where your local IP address might even change. First there was mosh…Īfter I finally joined a team at my new job nearly two months past my February start date, my new team mates were quick to inform me that I should ditch my tried-and-true ssh in favor of mosh. It is often considered a successor to screen. It is a highly recommended tool for remote development. tmux is a terminal multiple xer and session manager, meaning that if you disconnect from your machine you can reattach to your previous session and the state of your terminal tabs (managed within tmux) will be restored as if you had never left. For the rest of this post to make sense, you ought to have some understanding of tmux. ![]()
0 Comments
Leave a Reply. |