Unix Technical Forum

How can I tell if people have been scanning my computer?

This is a discussion on How can I tell if people have been scanning my computer? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Title just about says it. I have an open ssh port so that i can access my machine. I'm ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 06:51 AM
masked.slacker@gmail.com
 
Posts: n/a
Default How can I tell if people have been scanning my computer?

Title just about says it. I have an open ssh port so that i can access
my machine. I'm wondering how to see if others have been trying to
access it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 06:51 AM
Lew Pitcher
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

masked.slacker@gmail.com wrote:
> Title just about says it. I have an open ssh port so that i can access
> my machine. I'm wondering how to see if others have been trying to
> access it.
>

grep 'sshd' /var/log/messages
grep 'sshd' /var/log/syslog

- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFCMeLAagVFX4UWr64RAgG2AJ9C40pGinPeVumqf8xnPg mGXUw46QCgis8H
8a005yKxOWw9KdH8jlm1BkI=
=Blyh
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 06:51 AM
del
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

On Friday 11 Mar 2005 18:20 masked.slacker@gmail.com, wrote:

> Title just about says it. I have an open ssh port so that i can access
> my machine. I'm wondering how to see if others have been trying to
> access it.


As root do

tail -f /var/log/messages | grep sshd

and you?ll see something like this

Mar 11 18:36:11 host sshd[3971]: Accepted password for root from
127.0.0.1 port 33518 ssh2

(The above is wrapped)
Control + C to exit the command.
If you want to see all the access attempts within the log, again as root,
do this
grep sshd /var/log/messages | less
q to quit command.
--
del 8-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 06:51 AM
del
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

On 2005-03-11, Lew Pitcher <Lew.Pitcher@td.com> wrote:
>
> masked.slacker@gmail.com wrote:
>> Title just about says it. I have an open ssh port so that i can access
>> my machine. I'm wondering how to see if others have been trying to
>> access it.
>>

> grep 'sshd' /var/log/messages
> grep 'sshd' /var/log/syslog
>


I get no mention of sshd in syslog, am I missing something?
--
del 8-)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 06:52 AM
Lew Pitcher
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

del wrote:
> On 2005-03-11, Lew Pitcher <Lew.Pitcher@td.com> wrote:
>
>>masked.slacker@gmail.com wrote:
>>
>>>Title just about says it. I have an open ssh port so that i can access
>>>my machine. I'm wondering how to see if others have been trying to
>>>access it.
>>>

>>
>>grep 'sshd' /var/log/messages
>>grep 'sshd' /var/log/syslog
>>

>
>
> I get no mention of sshd in syslog, am I missing something?


Nope. It just means that no one has been trying to access your machine through ssh

- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCMjsdagVFX4UWr64RArchAJ4m+dDTFotyb3fCzeGzcD K0ibhG5ACgk5mX
75i0Zs0BSzhiwI8GvXCGf1Y=
=Yfnw
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 06:52 AM
del
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

On Saturday 12 Mar 2005 00:43 Lew Pitcher, wrote:

>> I get no mention of sshd in syslog, am I missing something?

>
> Nope. It just means that no one has been trying to access your machine
> through ssh


Nope, syslog is not logging sshd connections here, a pretty much standard
install of 10.1, either from the LAN or external connections. Have you
tweaked syslog.conf to do this for you?
--
del 8-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 06:52 AM
MikeyD
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

del wrote in <1469075.VdA3NctORC@devnull.sig.org.uk>:

> On Saturday 12 Mar 2005 00:43 Lew Pitcher, wrote:
>
>>> I get no mention of sshd in syslog, am I missing something?

>>
>> Nope. It just means that no one has been trying to access your machine
>> through ssh

>
> Nope, syslog is not logging sshd connections here, a pretty much standard
> install of 10.1, either from the LAN or external connections. Have you
> tweaked syslog.conf to do this for you?


sshd logs fine on my standardish install of 9.1 upgraded to 10.0 with
various other packages.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 06:52 AM
del
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

On 2005-03-12, MikeyD <m_donaghy50@hotmail.com> wrote:
>>>
>>> Nope. It just means that no one has been trying to access your machine
>>> through ssh

>>
>> Nope, syslog is not logging sshd connections here, a pretty much standard
>> install of 10.1, either from the LAN or external connections. Have you
>> tweaked syslog.conf to do this for you?

>
> sshd logs fine on my standardish install of 9.1 upgraded to 10.0 with
> various other packages.


I get sshd logs in /var/log/messages but not in /var/log/syslog.
To the OP: Just as long as they're logged somewhere that's all that
counts!
--
del 8-)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 06:53 AM
Otako
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?

On 2005-03-11, masked.slacker@gmail.com wrote:
> Title just about says it. I have an open ssh port so that i can access
> my machine. I'm wondering how to see if others have been trying to
> access it.


Portsentry-1.1 blocks scans and logs the source address of the scanner in
/etc/portsentry/portsentry.blocked. It used to be a www.psionic.com
project but since 2002 has been hosted at sourceforge.

http://sourceforge.net/projects/sentrytools.

Make sure that port 6000 tcp is unblocked in /etc/portsentry/portsentry.conf
if you use X on your machine. Put the address of the login host that you
ssh from in portsentry.ignore and block ssh port 22 in portsentry.conf.

hth,
kthmg.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 07:03 AM
mid.rony@gmail.com
 
Posts: n/a
Default Re: How can I tell if people have been scanning my computer?


masked.slacker@gmail.com wrote:
> Title just about says it. I have an open ssh port so that i can

access
> my machine. I'm wondering how to see if others have been trying to
> access it.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com