Hello Everyone.
I was looking at my server's /var/log/auth.log file and noticed someone is trying to access to my server. I have opened ports 143,25,80 and 22 on this server.
What you recommend me to do in my situation to prevent a hack?
Code:
Oct 10 22:27:24 owsmail sshd[28664]: pam_unix(sshd:auth): check pass; user unknown
Oct 10 22:27:24 owsmail sshd[28664]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=
174.122.98.98
Oct 10 22:27:26 owsmail sshd[28664]: Failed password for invalid user zai from 174.122.98.98 port 52555 ssh2
Oct 10 22:27:27 owsmail sshd[28666]: reverse mapping checking getaddrinfo for 62.62.7aae.static.theplanet.com [174.122.98.98]
failed - POSSIBLE BREAK-IN ATTEMPT!
Oct 10 22:27:27 owsmail sshd[28666]: Invalid user zaia from 174.122.98.98
Oct 10 22:27:27 owsmail sshd[28666]: pam_unix(sshd:auth): check pass; user unknown
Oct 10 22:27:27 owsmail sshd[28666]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=
174.122.98.98
Oct 10 22:27:29 owsmail sshd[28666]: Failed password for invalid user zaia from 174.122.98.98 port 53099 ssh2
Oct 10 22:27:30 owsmail sshd[28668]: reverse mapping checking getaddrinfo for 62.62.7aae.static.theplanet.com [174.122.98.98]
failed - POSSIBLE BREAK-IN ATTEMPT!
Oct 10 22:27:30 owsmail sshd[28668]: Invalid user zaid from 174.122.98.98
Oct 10 22:27:30 owsmail sshd[28668]: pam_unix(sshd:auth): check pass; user unknown
Oct 10 22:27:30 owsmail sshd[28668]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=
174.122.98.98
Oct 10 22:27:32 owsmail sshd[28668]: Failed password for invalid user zaid from 174.122.98.98 port 53755 ssh2
Oct 10 22:27:33 owsmail sshd[28671]: reverse mapping checking getaddrinfo for 62.62.7aae.static.theplanet.com [174.122.98.98]
failed - POSSIBLE BREAK-IN ATTEMPT!
Oct 10 22:27:33 owsmail sshd[28671]: Invalid user zaida from 174.122.98.98
Oct 10 22:27:33 owsmail sshd[28671]: pam_unix(sshd:auth): check pass; user unknown
Oct 10 22:27:33 owsmail sshd[28671]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=174.122.98.98
Oct 10 22:27:36 owsmail sshd[28671]: Failed password for invalid user zaida from 174.122.98.98 port 54410 ssh2
Oct 10 22:27:37 owsmail sshd[28673]: reverse mapping checking getaddrinfo for 62.62.7aae.static.theplanet.com [174.122.98.98] failed - POSSIBLE BREAK-IN ATTEMPT!
Oct 10 22:27:37 owsmail sshd[28673]: Invalid user zaidah from 174.122.98.98
Oct 10 22:27:37 owsmail sshd[28673]: pam_unix(sshd:auth): check pass; user unknown
Oct 10 22:27:37 owsmail sshd[28673]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=174.122.98.98
Oct 10 22:27:39 owsmail sshd[28673]: Failed password for invalid user zaidah from 174.122.98.98 port 55103 ssh2
Oct 10 22:27:41 owsmail sshd[28675]: reverse mapping checking getaddrinfo for 62.62.7aae.static.theplanet.com [174.122.98.98] failed - POSSIBLE BREAK-IN ATTEMPT!
Oct 10 22:27:41 owsmail sshd[28675]: Invalid user zaidi from 174.122.98.98
Oct 10 22:27:41 owsmail sshd[28675]: pam_unix(sshd:auth): check pass; user unknown
Oct 10 22:27:41 owsmail sshd[28675]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=174.122.98.98
Oct 10 22:27:43 owsmail sshd[28675]: Failed password for invalid user zaidi from 174.122.98.98 port 55834 ssh2
Thanks in advanced for your time and help.