hacking the Centos 8

Issues related to applications and software problems and general support
Post Reply
amir385276
Posts: 73
Joined: 2019/08/09 20:54:52

hacking the Centos 8

Post by amir385276 » 2022/01/06 22:47:57

Hi guys

I have a centos 8 and every time reboot the system show me the some logins failed
i have a static IP and i don't know why this information's are issue

#Last failed login: Thu Jan 6 22:24:53 GMT 2022 from 221.131.165.50 on ssh:notty
There were 47 failed login attempts since the last successful login.
Last login: Thu Jan 6 22:18:17 2022 from 91.133.150.158

My IP is a static and maybe some people or robot try to login my server

please help me to know what is this

thanks a lot

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: hacking the Centos 8

Post by jlehtone » 2022/01/06 23:10:29

You have publicly accessible IP address. Being static or dynamic makes no real difference, because robots can scan the entire IPv4 address range in reasonable time.

If you know the addresses that you will connect from, then limit access to SSH to those (in firewall).
If you have to have SSH open, then at least disable login as root and disable login with password.

amir385276
Posts: 73
Joined: 2019/08/09 20:54:52

Re: hacking the Centos 8

Post by amir385276 » 2022/01/07 10:23:35

thanks

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: hacking the Centos 8

Post by tunk » 2022/01/07 11:26:11

To get some more info, run the lastb command as root.

Post Reply