Find the answer to your Linux question:
Results 1 to 4 of 4
hi all, how to know if a particular IP address has tried to access my linux system? for eg) if a particular IP address has tried to access my telnet ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    19

    how to know if a particular IP address has tried to access my linux system?


    hi all,
    how to know if a particular IP address has tried to access my linux system?
    for eg) if a particular IP address has tried to access my telnet server or FTP server or SSH server?

    if i look at /var/log/messages or other log messages, i can see the host name or the FQDN and even the PID, but i don't get to see the IP address. how to see the ip address and the port number through which the system has accessed my server?

    thanks,
    nivedhitha

  2. #2
    Linux User
    Join Date
    Aug 2006
    Location
    Croydon, PA
    Posts
    392
    Try:

    last (Shows who logged in)
    lastb (shows ONLY bad logins)
    cat /var/log/secure
    Good Luck,
    Ski
    RHCT

  3. #3
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    You could also try the netstat in a terminal to see what is currently connected and most routers come with a log that you can view, check that too.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    19

    Re:how to know if a particular IP address has tried to access my linux system?

    Thank you for your replies Skiboy and MikeTbob
    i will try these commands and let you know if i still face any issues. otherwise, all is fine now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •