LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Redirect SSH i/o to tty console (https://www.linuxquestions.org/questions/linux-general-1/redirect-ssh-i-o-to-tty-console-599284/)

Ryan100 11-13-2007 06:23 AM

Redirect SSH i/o to tty console
 
I have an xbox that i have installed debain to, however I have no
keyboard or mouse, which is fine as i connect over ssh..

However it is annoying to be looking a small terminal window on my
laptop when i have a massive TV in front of me displaying a login
prompt.

Is there anyway to redirect the ssh terminal i/o so that it is
displayed in on tty0 (the TV)?

echo "hello" >> /dev/tty0

does the expected and outputs to the monitor but seems to move along by 1 tab(?) every new line (looks like it isnt reseting the position/framebuffer).

Code:

hello
    hello
        hello
            hello
                hello
                    ...

What I want is something like "screen" where i type into my ssh terminal on the laptop and everything happens on the ssh terminal and tty0 at the same time.

Thanks in advance.

MS3FGX 11-13-2007 07:51 PM

You can recompile sshd with the --use-login option, and point it at something like ttysnoop. When combined with some modifications to your boot scripts, you could make it so the XBox boots up and shows the SSH session on the screen.

Though honestly...I would just go on eBay and get a XBox-USB adapter for ~$4, or take the 5 minutes it takes to build one yourself. It would be much easier.

leo27 05-03-2011 09:46 PM

Quote:

Originally Posted by Ryan100 (Post 2957359)
I have an xbox that i have installed debain to, however I have no
keyboard or mouse, which is fine as i connect over ssh..

However it is annoying to be looking a small terminal window on my
laptop when i have a massive TV in front of me displaying a login
prompt.

Is there anyway to redirect the ssh terminal i/o so that it is
displayed in on tty0 (the TV)?

echo "hello" >> /dev/tty0

does the expected and outputs to the monitor but seems to move along by 1 tab(?) every new line (looks like it isnt reseting the position/framebuffer).

Code:

hello
    hello
        hello
            hello
                hello
                    ...

What I want is something like "screen" where i type into my ssh terminal on the laptop and everything happens on the ssh terminal and tty0 at the same time.

Thanks in advance.


hello there! this is my first post. i am new to linux and i'm happy that i've found this thread. but reading MS3FGX reply doesn't seem to help. can anyone point me to something that will show me detailed procedure on how to do this? yes, i want display everything happens on my ssh session/terminal to ttyx on my linux box. (i use putty.exe on windows). my apologies if i used wrong linux terminologies here. thanks in advance.


All times are GMT -5. The time now is 11:29 AM.