![]() ![]() If screen is not installed and you cant install it, you can also start an application in the background by adding a & to the command, as you tried. So, with the TCPKeepAlive option passed to SSH, the SSH client will send an encrypted packet to the SSH server, keeping your TCP connection up and running. This detach the screen session, keeping it running in the background. nf on the web for many good customizations to get you started. TCPKeepAlive: This uses the KEEPALIVE option of the TCP/IP protocol to keep a connection alive after a specified interval of inactivity. So my recommendation would be tmux.Īlso search for "dotfiles", in particular nf and. apt-get install tmuxīyobu is a nice frontend to both terminal multiplexers, but tmux is so comfortable that in my opinion it obsoletes byobu to a large extent. Now you get "tabs" in the form of windows and panes inside GNU screen and tmux. And not to forget, terminal multiplexers overcome one of the big disadvantages of PuTTY: no tabbed interface. Keeping an SSH session alive is a process that involves configuration on both the client and server sides. The possibilities are manifold and it's a true productivity booster. So you can connect to the same session from another machine (e.g. And that works across different machines. This way even if you get forcibly disconnected - let's face it, a power outage or network interruption can always happen - you can always resume your work where you left. Also as use of the -m switch implies a non-interactive terminal, you need to force an interactive terminal back using a -t switch. Set up byobu (or even just tmux alone as it's superior to GNU screen) and always log in and attach to a preexisting session (that's GNU screen and tmux terminology). As PuTTY needs the session startup command to be stored in a file, you need to make use of command pattern to store the above command into a temporary file. Go back to Session, click on a name and save the configuration. Now that you are there click on Window -> Translation and select Latin-1, works nice with Raspbian character graphics. In addition I would strongly recommend that you do something else entirely. Open the configuration panel and click on Connection and enable TCPKEEPALIVE sending Null packets every 30 seconds. ![]() Bash (usually the default shell on Ubuntu) has a value TMOUT which governs (decimal value in seconds) after which time an idle shell session will time out and the user will be logged out, leading to a disconnect in an SSH session. In addition to the answer from "das Keks" there is at least one other aspect that can affect this behavior. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |