Viewing SSH Connection
Kyle Mott
kyle at xraided.net
Tue Jun 8 06:41:53 GMT 2004
Several people have suggested using the snp.ko and watch, which works
great.
However, I didn't want to have the devices just sitting around so
someone else on the system could use it, so I did 'kldunload snp.ko'
then rm -f /dev/snp0... My system seems to be freaking out. Did I break
something? Actually, I think I just had a kernel panic. *sigh*
-Kyle Mott
> -----Original Message-----
> From: owner-freebsd-stable at freebsd.org [mailto:owner-freebsd-
> stable at freebsd.org] On Behalf Of Dariusz Kulinski
> Sent: Monday, June 07, 2004 10:26 PM
> To: freebsd-stable at freebsd.org
> Subject: Re: Viewing SSH Connection
>
> 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 at 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 at takeda.tk
> CCNA, SCSA, SCNA, LPIC, MCP certified
> http://www.takeda.tk
>
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to
"freebsd-stable-unsubscribe at freebsd.org"
More information about the freebsd-stable
mailing list