Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2004 23:41:46 -0700
From:      "Kyle Mott" <kyle@xraided.net>
To:        "'Dariusz Kulinski'" <takeda@takeda.tk>
Cc:        freebsd-stable@freebsd.org
Subject:   RE: Viewing SSH Connection
Message-ID:  <000801c44d23$ab21f520$1414a8c0@kyle>
In-Reply-To: <14913464828.20040607222601@takeda.tk>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org [mailto:owner-freebsd-
> stable@freebsd.org] On Behalf Of Dariusz Kulinski
> Sent: Monday, June 07, 2004 10:26 PM
> To: freebsd-stable@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@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
> 
> _______________________________________________
> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c44d23$ab21f520$1414a8c0>