Instead of using roaming, a much better approach is using screen with shell scripting. This has serious advantages like resuming the session over a different client machine, the program running in foreground won't slow down even if the terminal (or Internet connection) is slow etc...
Just install screen on the server and run the following commands for a presistant session --
while [[ j != k ]]; do ssh -tt
This'll reconnect on disconnecting. You can use tabs in screen and take multiple sessions over the same screen instance. Open the other tabs using --
while [[ j != k ]]; do ssh -tt
while [[ j != k ]]; do ssh -tt
while [[ j != k ]]; do ssh -tt
For tabs numbered 1, 2, 3 etc...
I use Gentoo's default config for the screen on the server, it works great!
No comments:
Post a Comment