From owner-freebsd-stable@FreeBSD.ORG Tue Jun 8 06:41:53 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1468016A4CE for ; Tue, 8 Jun 2004 06:41:53 +0000 (GMT) Received: from xraided.net (xraided.net [66.88.26.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id C61D443D2F for ; Tue, 8 Jun 2004 06:41:52 +0000 (GMT) (envelope-from kyle@xraided.net) Received: from [66.88.29.118] (account kyle HELO kyle) by xraided.net (CommuniGate Pro SMTP 4.1.8) with ESMTP id 1727443; Mon, 07 Jun 2004 23:41:49 -0700 From: "Kyle Mott" To: "'Dariusz Kulinski'" Date: Mon, 7 Jun 2004 23:41:46 -0700 Message-ID: <000801c44d23$ab21f520$1414a8c0@kyle> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <14913464828.20040607222601@takeda.tk> cc: freebsd-stable@freebsd.org Subject: RE: Viewing SSH Connection X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 06:41:53 -0000 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 " 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"