LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Can I SSH into a tty terminal? (https://www.linuxquestions.org/questions/gentoo-87/can-i-ssh-into-a-tty-terminal-774064/)

dragos240 12-07-2009 04:21 PM

Can I SSH into a tty terminal?
 
For example, say I want to check how my kernel is doing if I am compiling my kernel. Or maybe I ssh'ed into my computer, and echo "HELLO" > /dev/tty12, and I want to view the result in tty12. Can I do this?

rweaver 12-07-2009 04:46 PM

The easy way is to use the most underutilized program in *nix.

Screen, it lets you have a terminal you can detach and reattach later to the same terminal or another. You could for instance open it on a console and then detach it and logout. Come back 2 hours later via ssh and reattach to the screen session and pick up like you never logged off.

Spectacular program.

I wrote a blog post about Screen -- the basic use of it and what not. I'm not going to c&p (because all the html would need reformatted and I don't wanna spend 30m reformatting it.)

It will be part of the standard distribution you use... just emerge it and you should be good to go. Just remember you have to be the same user who started the screen session to reattach it.


All times are GMT -5. The time now is 10:08 AM.