Re: How to seize control of user terminal?
From: A. Nonny Mouse (alpha_at_werkz.cz)
Date: 08/18/04
- Next message: William Park: "Re: (patch for Bash) XML + Bash"
- Previous message: Chris F.A. Johnson: "Re: trim last few chanracter from a string"
- In reply to: Alexis Huxley: "Re: How to seize control of user terminal?"
- Next in thread: Michael Vilain
: "Re: How to seize control of user terminal?" - Reply:(deleted message) Michael Vilain
: "Re: How to seize control of user terminal?" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 17 Aug 2004 23:38:32 GMT
On Tue, 17 Aug 2004 11:51:31 +0200, Alexis Huxley wrote:
>> In other words:
>>
>> 1) Machine running at home
>> 2) SSH into home machine from work computer
>> 3) Come home and realize SSH task is still running, and I want to check
>> its progress or see the terminal output
>>
>> How can I "jump into" that SSH shell? I looked at screen and I can see
>> how I would make that work, but I want to know how to do it without having
>> to run screen beforehand. I'm root, so does that give me the privilege of
>> jumping in on any user shell session? If I am using a shell on a campus
>> computer, can the root account snoop my terminal session?
>
> Use 'screen' immediately after you slogin in the first place.
> When you come home use 'screen -D -RR'.
>
> Look at the screen man page for more details.
>
> If you've not got screen installed a quick good google on 'screen' and
> a few of the keywords from your posting will find it for you.
>
> Alexis
Well, I was trying to be clear, I guess I failed.
I am aware of screen. I agree that screen can be used to work around this
problem.
My question, though, is this: if a user has started a shell and has not
used screen, can that shell be commandeered by root?
Here is my scenario again:
1) User 'Teddy' starts an SSH shell to host 'Bear'. Teddy DOES NOT
USE SCREEN: the session is a run-of-the mill ssh login.
2) User 'root' decides to commandeer the shell session started by user
'Teddy'.
How would root accomplish step 2? Can root acquire or somehow 'listen'
to the output of Teddy's SSH session? Can root cause keystrokes to be
sent into Teddy's session? Can root prevent Teddy from entering input to
the session?
Basically, I'm wondering if root can manually do this small fraction of
what screen can do.
- Next message: William Park: "Re: (patch for Bash) XML + Bash"
- Previous message: Chris F.A. Johnson: "Re: trim last few chanracter from a string"
- In reply to: Alexis Huxley: "Re: How to seize control of user terminal?"
- Next in thread: Michael Vilain
: "Re: How to seize control of user terminal?" - Reply:(deleted message) Michael Vilain
: "Re: How to seize control of user terminal?" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|