HowToForums.net Forum Index HowToForums.net
An Open Source of Knowledge
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HowTo view your buddy's Terminal Session from Remote...no X

 
Post new topic   Reply to topic    HowToForums.net Forum Index -> Linux Tips & Tricks
View previous topic :: View next topic  
Author Message
jacob
Site Admin
Site Admin


Joined: 16 Mar 2006
Posts: 73
Location: USA

PostPosted: Fri Sep 01, 2006 12:13 pm    Post subject: HowTo view your buddy's Terminal Session from Remote...no X Reply with quote

Overview
In this HowTo I will explain how two users connected to a Linux Terminal via any xterm terminal emulator, can view each others Shell while cooperating...no X server nor VNC is required...this is all based on a "headless" server with only Secure Shell (SSH) on it.


The Scenario
User 1 is connected to some Mail server in the world over SSH, using his favorite xterm terminal emulator, PuTTY. (you can use any Terminal Emulator)
User 1 will be conducting a mission critical update on this server, and would like his buddy User 2 to be his overseeing eye as he goes about his important task...
User 2 logs into the Mail server via SSH and his favorite term emulator, Konsole. (...again it can be any Term)...
They are ready to begin...

The Magic...
User 1 kicks off the commands:
Code:

echo "I am about to run the script so you can watch me..." | wall
echo "In 5 seconds, do: cat /tmp/watchme" | wall
mkfifo /tmp/watchme
script -f /tmp/watchme


User 2 receives the message via Broadcast and kicks off the command:
Code:

cat /tmp/watchme



User 2 is now viewing User 1's Terminal Session !!!


User 2 opens up an additional session to the Mail Server and:
Code:

echo "dude, very cool, I can see what you are typing..." | wall


I hope you enjoy this tip, and for more info on the tools we used here you can:
Code:

man mkfifo
man script
man wall




Big Thanks to my good friend & Guru colleague Zoran Naskov aka "bozo" for teaching me this Old School & VERY use full trick!!!



--
Jacob
Linux -- Breaking All Boundries
"you may say I am a dreamer, but i'm not the only one"
http://howtoforums.net
Back to top
Display posts from previous:   
Post new topic   Reply to topic    HowToForums.net Forum Index -> Linux Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group