Hi. I was wondering if anyone knows of a way to 'view' what another person is typing over an SSH terminal? Essentially, I want a friend to be able to look at what I'm typing real-time into the console. We will both be connected to the server via SSH. Is there a way to do this? If this is not possible, are there any other options (aside from using Telnet)? -Kyle Mott
On Mon, Jun 07, 2004 at 09:48:07PM -0700, Kyle Mott wrote:> Hi. I was wondering if anyone knows of a way to 'view' what another > person is typing over an SSH terminal? > > Essentially, I want a friend to be able to look at what I'm typing > real-time into the console. We will both be connected to the server via > SSH. Is there a way to do this? > > If this is not possible, are there any other options (aside from using > Telnet)?Since you both have access to the server one way to do this is for you to do: script -t0 and your friend to do: tail -f typescript I'm sure there are other ways... -- Ken Smith - From there to here, from here to | kensmith@cse.buffalo.edu there, funny things are everywhere. | - Theodore Geisel |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 8 Jun 2004 14:18, Kyle Mott wrote:> Hi. I was wondering if anyone knows of a way to 'view' what another > person is typing over an SSH terminal? > > Essentially, I want a friend to be able to look at what I'm typing > real-time into the console. We will both be connected to the server via > SSH. Is there a way to do this? > > If this is not possible, are there any other options (aside from using > Telnet)?Try using the snoop device and watch. eg kldload snp watch ttyp1 Another way for 2 people to cooperate is to use screen's -x option, or you can use VNC for graphical stuff. - -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAxUnU5ZPcIHs/zowRAvGaAJ0bUg04v/Z7HOlD/IsNoiWuyjP5oQCdFUBj mVjVf7MZb04CzyA32Qbb2qU=i9Id -----END PGP SIGNATURE-----
Hello Kyle, Monday, June 7, 2004, 9:48:07 PM, you wrote:> Hi. I was wondering if anyone knows of a way to 'view' what another > person is typing over an SSH terminal?> Essentially, I want a friend to be able to look at what I'm typing > real-time into the console. We will both be connected to the server via > SSH. Is there a way to do this?> If this is not possible, are there any other options (aside from using > Telnet)?Yes it's possible, the command your friend needs to use it watch, of course he need to have root access. You also need to prepare before you can use watch: 1. compile kernel with snp device or load snp.ko kernel module: kldload snp.ko 2. create snp* devices: cd /dev ./MAKEDEV snp0 you can create more to allow using more simultaneous watch commands 3. check which terminal user which you want to watch is connected you can use for ex. "w" command: takeda@freebsd:/home/takeda> w 22:04:08 22:04 up 11 days, 28 mins, 1 user, load averages: 0,01 0,04 0,01 USER TTY FROM LOGIN@ IDLE WHAT takeda p0 takeda.lan 22:00 - screen -r Terminal is ttyp0 or p0 4. write "watch <terminal>" i.e.: watch p0 To disconnect press ctrl+g, for more informations check man: man watch -- Best regards, Dariusz mailto:takeda@takeda.tk CCNA, SCSA, SCNA, LPIC, MCP certified http://www.takeda.tk
On Mon, 7 Jun 2004 21:48:07 -0700, Kyle Mott <kyle@xraided.net> wrote:> Hi. I was wondering if anyone knows of a way to 'view' what another > person is typing over an SSH terminal? > > Essentially, I want a friend to be able to look at what I'm typing > real-time into the console. We will both be connected to the server via > SSH. Is there a way to do this?Yes, this is possible. Nevermind which connection is there, but you need only /dev/ttyXY With connand "who" you can get terminal name opened with some user. Smartster# who carnaily ttyv0 7 ??? 11:50 carnaily ttyp0 7 ??? 11:50 (:0.0) carnaily ttyp1 7 ??? 11:50 (:0.0) Too findout which terminal is opened by you type tty Smartster# tty /dev/ttyp8 Here you can see user carnaily have three termonal opened and to grab one of them you should command: watch -W /dev/ttyXY where XY is terminal number you need to watch and you'll see everything what entered carnaily on ttyv0 There can be problem with file rights access and you can be in one group to solve this problem and make group access to your ttys. You can see error message similar to "can't open snoop device..." If it was make this: cd /dev ./MAKEDEV snp0 ./MAKEDEV snp1 ./MAKEDEV snp2 ./MAKEDEV snp3 I can be wrong but I thing options UCONSOLE in the kernel configuration should be. :-\ Not sure.> If this is not possible, are there any other options (aside from using > Telnet)? > > > > -Kyle Mott > > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Kyle Mott wrote:>Hi. I was wondering if anyone knows of a way to 'view' what another >person is typing over an SSH terminal? > >Essentially, I want a friend to be able to look at what I'm typing >real-time into the console. We will both be connected to the server via >SSH. Is there a way to do this? > >If this is not possible, are there any other options (aside from using > >Telnet)? >if the two of you can log in as the same user your 'friend' can easily use "screen -x" to go into multiview mode once you start your screen session. cheers, twkonefal -- * Tomasz Konefal * * Systems Administrator * * Command Post & Transfer Corporation * ( +1-416-585-9995 349