I looked in /var/log/messages and found hundreds of "authentication failiures":
CODE
Sep 5 05:51:31 vps sshd(pam_unix): authentication failiure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=219.252.183.*
Sep 5 05:51:31 vps sshd(pam_unix): authentication failiure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=219.252.183.*
Sep 5 05:51:33 vps sshd(pam_unix): authentication failiure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=219.252.183.*
Sep 5 05:51:34 vps sshd(pam_unix): authentication failiure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=219.252.183.*
And some of the lines include usernames like root, news, ftp, lp and operator.
I guess this is some sort of brute force attack. I've got a 20 digit/char root password, and I have also disabled direct root access as of now (have to su through another "secret" user).
I wonder, is this common? This is a new VPS with only a few websites (all of them are mine). I find it rather scary anyways. Is there a log where I can see what IP that has successfully logged into the server (wether it be ftp or ssh)?
I also have a lot of these in the /var/log/messages log:
CODE
Sep 5 06:47:15 vps pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
What is that all about?
Also, when it list a successfull ftp login without any attached user, what is that? I noticed that the usernames are listed when any of my legit ftp users log in, but I had a few logins that were missing usernames (or so it seemed). Can it be cPanel or whatever? It says;
CODE
Sep 1 16:50:50 vps pure-ftpd: (?@212.112.238.*) [INFO] New connection from 212.112.238.*
Sep 1 16:50:50 vps pure-ftpd: (?@212.112.238.*) [INFO] Logout
Sep 1 16:50:50 vps pure-ftpd: (?@212.112.238.*) [INFO] New connection from 212.112.238.*
Sep 1 16:50:50 vps pure-ftpd: (?@212.112.238.*) [INFO] Logout
The times look rather strange. Also, no users specified, and no operations seems to be done (I can see other ftp operations by legit users, like uploads etc). So, is the "Logout" part just saying that the user (or probably virus/bot) closes the connection before the password is entered?
I guess it's time to install a brute force monitor.