LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-13-2007, 06:23 AM   #1
Ryan100
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu RHEL SLES Debian Backtrack
Posts: 12

Rep: Reputation: 0
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.
 
Old 11-13-2007, 07:51 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.

Last edited by MS3FGX; 11-13-2007 at 07:53 PM.
 
Old 05-03-2011, 09:46 PM   #3
leo27
LQ Newbie
 
Registered: Apr 2011
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Ryan100 View Post
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.
 
  


Reply

Tags
redirect, ssh, terminal, tty



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH to local console (tty) mastrboy Linux - General 6 01-15-2010 05:54 AM
difference between console, tty and ttyS localp Slackware 1 08-12-2007 01:23 PM
console tty assignment in mdk 10.1 bcotton56 General 0 01-11-2007 10:26 PM
tty console switching problem aldar Slackware 2 12-16-2005 06:30 PM
more then 12 tty /console ... apenguinlinux Debian 4 02-21-2005 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration