LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2005, 06:29 PM   #1
joeman3429
Member
 
Registered: Jul 2004
Location: Oregon
Distribution: Fedora
Posts: 67

Rep: Reputation: 15
Finding out who ssh'd into my system


Hi,
I'm in a Red Hat Academy class at my highschool and we've been having some fun lately.
Th whole room (except for the teacher's comp of course) is open. By which I mean that within the room, we are free to roam around inside eacothers computers. There is no threat because we use a very simple system.
If you format someone elses hard drive, you fail the class.

Anyway, we've been ejecting eachother's CD drives the last couple of days and it's beginning to get old now. People log in and out too fast to use 'who' to see who's SSH 'd into my computer. Where is the log file that records who used ssh to get into my computer and when?

I'm just curious

Thanks
 
Old 10-14-2005, 07:42 PM   #2
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
/var/log/secure
do they have speakers?
If so
cat /dev/random > /dev/dsp0 or whatever their sound card is
hehehe
 
Old 10-14-2005, 08:14 PM   #3
joeman3429
Member
 
Registered: Jul 2004
Location: Oregon
Distribution: Fedora
Posts: 67

Original Poster
Rep: Reputation: 15
hehehe, thats a good idea. But no, they don't
I'll need to remember that one
 
Old 10-14-2005, 08:17 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Actually, that file is likely to be quite large. Might be better to look at the bottom....
tail /var/log/secure

Also, if you don't have a reason to run sshd, I would shut it down.
chkconfig --level 2345 sshd off
/etc/rc.d/init.d/sshd stop or service sshd stop

I would also look into blocking everybody on your network with iptables.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding system specs? ra1d Linux - Newbie 9 05-23-2006 08:18 AM
Can't open X apps when ssh'd in? BrianK Linux - Software 4 12-02-2005 01:10 PM
Finding the bottleneck in my system? sneakyimp Linux - Software 10 09-27-2005 12:04 PM
copy/ftp/sftp/rsync from ssh'd machine allelopath Linux - Software 5 05-05-2005 02:16 PM
Webserver can only be accessed from network until SSH'd into as root Davus Linux - Software 1 08-04-2004 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration