Skip to main content

netstat - ESTABLISHED = LOGIN?, and how we can get the USERNAME used for that connection?

Comments

6 comments

  • cPanelLauren
    What is output when you run the command as follows: who
    It should list active user sessions and the username they're logged in with. All you get in messages for logins is something like the following: Jul 24 14:05:20 server systemd-logind: New session 15601 of user root.
    If the user isn't logged in still you could search /var/log/secure
    for the IP which would show the attempts and username
    0
  • 000
    What is output when you run the command as follows: who

    Thanks, I believe who is only for connections SSH. I forget say this is about connections FTP.[root@pepsi ~]# who root pts/0 2020-07-24 12:48 (my.office) [root@pepsi ~]#
    but this TODAY. Thanks by your orientation about this possible threat.
    0
  • cPanelLauren
    Well if the user logged in you'd have output in the logs like the following from /var/log/messages
    Jul 24 14:37:54 server pure-ftpd: (?@) [INFO] New connection from Jul 24 14:37:59 server pure-ftpd: (?@) [INFO] lauren is now logged in
    What that login looks like is a login attempt that failed.
    0
  • 000
    What that login looks like is a login attempt that failed.

    Many thanks by give pace to my mind . . . :)
    0
  • 000
    :-D PEACE !!
    0
  • cPanelLauren
    I'll go ahead and mark this as resolved :)
    0

Please sign in to leave a comment.