From owner-freebsd-stable@FreeBSD.ORG Tue Jun 8 05:33:26 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 D5A4B16A4CE for ; Tue, 8 Jun 2004 05:33:26 +0000 (GMT) Received: from jive.SoftHome.net (jive.SoftHome.net [66.54.152.27]) by mx1.FreeBSD.org (Postfix) with SMTP id 53B4843D2F for ; Tue, 8 Jun 2004 05:33:26 +0000 (GMT) (envelope-from carnaily@softhome.net) Received: (qmail 11719 invoked by uid 417); 8 Jun 2004 05:33:26 -0000 Received: from charleston-.softhome.net (HELO softhome.net) (172.16.2.12) by shunt-smtp-out-0 with SMTP; 8 Jun 2004 05:33:26 -0000 Received: from Smartster ([81.1.195.2]) (AUTH: LOGIN carnaily@softhome.net) by softhome.net with esmtp; Mon, 07 Jun 2004 23:33:22 -0600 To: Kyle Mott , freebsd-stable@freebsd.org References: <000701c44d13$cab121a0$1414a8c0@kyle> Message-ID: From: Andreas Carnaily Organization: Stanbury Content-Type: text/plain; format=flowed; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Tue, 08 Jun 2004 06:33:29 -0000 In-Reply-To: <000701c44d13$cab121a0$1414a8c0@kyle> User-Agent: Opera7.23/FreeBSD M2 build 518 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 05:33:26 -0000 On Mon, 7 Jun 2004 21:48:07 -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? 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/