Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Here's the deal. I have a Linux Mint 15 server running a web server, an ssh server, and a minecraft server. When I go back to college after the summer, I want to leave my machine at home (6 hrs away) and just ssh in when I need to do things. I use the tty1 terminal to execute the minecraft server (always), and it constantly prints log info and accepts input from the server (this can change things in game, edit and reload the whitelist, and a few other things).

So, is there a way for me to legitimately (or even by "hacking") ssh into my computer and then take control of another tty# terminal and inject my own commands into a process it is running as well as view that process's output?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

The best and easiest way is to use tmux or gnu screen. Both let you detach a session and pick it up from another terminal, among their other nice features.

share|improve this answer
    
+1 for tmux. Screen feels a bit old these days. –  HalosGhost May 8 at 13:10
    
tmux is perfect. It took me all of five minutes to get it working. –  jaredad7 May 8 at 16:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.