Results 1 to 2 of 2

Thread: [SOLVED] Check current connections/sessions?

  1. #1
    Join Date
    Dec 2006
    Location
    Oregon, US
    Beans
    1,541
    Distro
    Ubuntu Development Release

    [SOLVED] Check current connections/sessions?

    I'm curious as to how I could check to see what connections are currently open on my machine. In particular, I'd like to be able to see who is connected via SSH and what their IP address is.

  2. #2
    Join Date
    Jun 2008
    Location
    Michigan
    Beans
    52

    Re: Check current connections/sessions?

    netstat -tunva
    and better yet you can pipe the command to grep for specific services.
    If you know that SSH runs on port 22 then:
    netstat -tunva | grep 22
    or
    if you know what ip address your looking for
    netstat -tunva | grep 192.168.1.1

Bookmarks

Posting Permissions

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