Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jun 2004 06:33:29 -0000
From:      Andreas Carnaily <carnaily@softhome.net>
To:        Kyle Mott <kyle@xraided.net>, freebsd-stable@freebsd.org
Subject:   Re: Viewing SSH Connection
Message-ID:  <opr89i53og1idx76@mail.softhome.net>
In-Reply-To: <000701c44d13$cab121a0$1414a8c0@kyle>
References:  <000701c44d13$cab121a0$1414a8c0@kyle>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opr89i53og1idx76>