LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 11-13-2007, 07:23 AM   #1
Ryan100
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu RHEL SLES Debian Backtrack
Posts: 12
Thanked: 0
Redirect SSH i/o to tty console


[Log in to get rid of this advertisement]
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.
Ryan100 is offline  
Tag This Post , , ,
Reply With Quote
Old 11-13-2007, 08:51 PM   #2
MS3FGX
Senior Member
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 4,218
Thanked: 80
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 08:53 PM..
MS3FGX is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


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


All times are GMT -5. The time now is 08:29 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration