LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   See a telnet session (https://www.linuxquestions.org/questions/linux-newbie-8/see-a-telnet-session-41270/)

log 01-13-2003 01:20 AM

See a telnet session
 
Say I telnet to my computer from uni and I want to see that specific telnet session from my actual computer, is it possible?

thanks! :)

lhiggins 01-13-2003 03:10 AM

What do you mean to see that specific telnet session from my actual computer?

I for one would not use telnet. I am not at uni or college. I dont think they would use the insecure telnet.
The next best thing is ssh. Its basically secure telnet. Runs on a different port also.

See http://www.openssh.com/

If you have ssh installed on your machine. You can access it via the prompt: ssh username @IP address or hostname

log 01-13-2003 03:35 AM

Say I have a linux server with people sshing in.

I want to look at any of the ssh sessions or telnet sessions and see what they are doing? is this possible?

note: im wont be spying on anyone, I just want to see whats happening on my own account (and there is only my one account anyway)

lhiggins 01-13-2003 04:28 AM

mmmm. I'm not sure. My experience in linux isnt that vast. Maybe there is a log you could view. Dont ask me what it is.

Just dont use telnet. Its insecure. Passwords are sent through clear text. SSH isnt.

unSpawn 01-13-2003 08:02 AM

There are some means for users snooping, some are already on a regular system, the others border on the malicious and usage could well break your box (or open security holes).
Lastcomm will give you all commands entered in the console (man lastcomm),
then there's the shells' history file (~/.bash_history for bash) or you could execute "script" from ~/.bash_profile, but both history and script are easy to thwart.
You can use tcpdump to log sessions.
If you want to log commands from a pty/tty then appcap, ttysnoop, linspy or a kernel module called "exec.o" should do.
If recompiling the kernel is no problem, then the Grsecurity patches also provide a way to log user activity.

log 01-13-2003 08:11 AM

thanks for your help :)


All times are GMT -5. The time now is 06:14 PM.