/srv/irclogs.ubuntu.com/2021/05/12/#ubuntu-server.txt

lordievaderGood morning06:05
fooaaronr / bezt - looks like I'm going to want fail2ban. Even with not accepting passwords, I still see non-stop attempts in ssh. I suspect that's fine but there's no reason to allow that. Is there config required on fail2ban I wonder? /me investigates docs15:37
aaronrfoo: just installing it will provide basic protection but I second bezt's recommendation for enabling recidive to give harsher penalties to repeat offenders15:38
fooaaronr: thanks, looking into how to do that now.15:39
foook, I installed fail2ban. Seems easy enough. Watching auth logs and looking into recidive15:46
* foo reads https://bpaulino.com/entries/hardening-your-server-security-with-fail2ban15:46
mybalzitchfoo: you can always move ssh off the default port. that'll stop a bunch of the blind connection attempts15:46
foomybalzitch: I did, bots found it, haha.15:47
mybalzitchoh dang15:47
fooI could move it again, I suppose.15:47
mybalzitchbut yeah, my one public facing server where I have ssh exposed gets a lot of attempts15:47
mybalzitchbut I think my hosting provider filters some of the worst networks15:48
fooYeah, I had ssh on port 8822.15:48
foosshd[9725]: Disconnected from invalid user Costi.UNDERNET 45.240.88.119 port 51900 [preauth]15:48
* foo shakes head15:48
mybalzitchthats an odd one15:48
mybalzitchyou should set up t-pot lol15:49
patdk-l2I just leave ssh on port 2216:03
patdk-l2my router blocks most of the offenders16:03
patdk-l2and if I would move it to another port that would be really rather annoying16:03
patdk-l2and sholin or whatever will find it in a week and everyone would be attacking it on the new port anyways16:04
DArqueBishopWhat might also help is to set PasswordAuthentication on sshd_config to "No", so that users are forced to use pubkey authentication. That'll greatly refuce the effectiveness of brute force attacks.16:30
andolfoo: I mean, what problem are you trying to solve here? Assuming that you don't accept password logins there is really no real risk that a brute force attack will have any success in gaining access to your systems. Is it the log entries you find annoying? Or does the constant connection attempts keeping filling up sshd's connection limiting, blocking your own access?17:04
fooandol: good question, the former - just annoying. But my hunch is this is "server admin as usual"17:27
fooandol: ... eg. it's likely fine to just let it be17:27
fooandol: appreciate you digging a little further17:28

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!