[06:07] Good morning === setuid is now known as zZzzZzetuid === StathisA_ is now known as StathisA === zZzzZzetuid is now known as setuid === m1dnight1 is now known as m1dnight_ [14:54] Just happened to catch someone trying to brute force my system via ssh. Is there any quick way to lock sshd down from that happening again? Looks like it happened a ton before I caught it [14:55] foo: apt install fail2ban [14:55] bans repeat login offenders for a configurable amount of time to slow/stop bruteforce attacks [14:55] (works for services other than SSH too, but only SSH is configured by default) [15:00] foo: if you can, disable password authentication and relying key only [15:13] foo: For fail2ban, consider enabling the recidive jail in addition to ssh. [15:26] foo: Or simply disallow password login, which you kind of should do anyway? [15:27] ^ x2 [15:27] ...which I now see has already been suggested. Sorry about that. [15:36] well, that can't be repeated enough ;) [16:00] foo: ufw limit can force rate-limiting to the sshd (or any other service, but it's probably best-tuned for sshd..) -- but double-plus-votes on the disable password auth [16:07] Permissions went wonky on my Ubuntu 20.04 server this morning, and now I've getting lots of "failed to mount file system" errors [16:08] Three hard drives, all of them failing. Verified the external still works on a diff device. I assume it's the motherboard that just bit the dust? [16:09] :( [16:09] sarnold: Is that a correct assessment, do you think? [16:09] It won't even mount the kernal file system [16:09] *kernel [16:10] CodeMouse92: I'm lucky, I don't often see failed hardware [16:10] CodeMouse92: but that certainly feels plausible [16:11] kk. I do have a couple of other towers sitting about, I'm going to try swapping in the hard drives and network card and seeing if that works. [16:11] yay [16:13] I've been running this thing for...what, nine years? [16:15] *sniff* goodbye trusted (and probably ran trusty) machine [16:17] Trusty at one point. Focal when it died [16:45] sarnold: Not the motherboard. Swapped into a different tower, same problem [16:46] CodeMouse92: uhoh. do you have any way to test the drives via eg usb sata adaptors on another machine? [16:47] Yeah, doing that now [16:51] sarnold: Both mount here, each reporting "one bad sector [16:51] But I'm used to that on HDDs. [16:51] As long as it's not interfering with operation, that's usually fine [16:51] I wonder what's different.. [16:51] Yeah. Neither work when plugged in [16:52] I mean...to the tower [16:52] But they both work here [16:52] powersupply? [16:52] when those go wonky they can lead to hard to understand problems [16:52] Would that do that? [16:52] Hmm [16:52] I've seen stranger [16:52] Well....no...it can't be that, because I swapped the hard drives b/w *towers* [16:53] The only things I moved between towers were the two HDDs, the PCIExpress network card, and the RAM [16:53] Everything else was the same [16:57] ohhhhh. strange strange. [16:57] sarnold: What would it mean to you if this hard drive has remounted itself three times in the past five minutes [16:57] I can read files from it, but it keeps remouting [16:57] CodeMouse92: not sure; corrupt filesystem, bad memory, bad motherboard, bad hard drive, bad cables, bad controller, all feel on the table [16:58] RAM shouldn't do this [16:58] Cables were diff [16:58] Or....were they? Hmm [16:58] No, cables are diff [16:59] B/c this remounting regularly *here* is on a diff cable, that's weird [17:00] I'll run a SMART test on this [17:01] sarnold: Uhm...this is claiming the disk doesn't support SMART [17:01] I could've sworn it did before [17:02] I'd move just the HDD's, one at a time if possible, and see if they work in the other tower [17:02] CodeMouse92: usb is funny that way.. [17:03] sarnold: It's never not worked over USB before ;) [17:03] incognegro76: I mean, I can...the trouble is, I can't really *know* until I boot, and the hard drive in question is the system drive [17:03] CodeMouse92: I think there's a command line switch you can give to smartctl to get it to try, but I think not all usb adaptors can pass it through, and I'm not sure if that's the default to try it anyway or not :/ [17:03] Oh, pointed to a sector instead of a devie, silly me [17:04] CodeMouse92: oh good, results? :) [17:04] I don't know yet [17:04] Just started short test [17:05] Uhm...passed? Weird [17:06] SMART is not showing *anything* of concern [17:07] Just assuming that the remounting is not the HDD's fault, I'm going to plug just this drive into the tower (per incognegro76's idea) and see if the error continues. [17:29] I can boot the machine to other hard drives, as long as this one isn't plugged in. [17:29] So I will need to reinstall :( [17:33] Given that I only have one bad sector, I may be able to copy *some* things from the dying HDD directly. [17:50] sarnold / andol / bezt / sdeziel / aaronr - a bit delayed, but thank you on suggestions to stop ssh brute force. In the short term I changed ports (before asking here). Disabling pass auth is an easy one, I thought I did that but will double check. Also will look into fail2ban. [17:50] woot [17:51] Well, guess it wasn't. I may have enabled it at one point for a short term solution without disabling it [17:51] PasswordAuthentication no [17:52] Thanks ya'll. Will check about fail2ban next but my hunch is this will do me some good. [18:31] foo: you could consider a port-knocker, such as fwknop-server and fwknop-client [18:31] !info fwknop-server [18:31] fwknop-server (2.6.10-12, hirsute): FireWall KNock OPerator server side - C version. In component universe, is optional. Built by fwknop. Size 83 kB / 246 kB. (Only available for linux-any.) [19:20] Thanks Odd_Bloke, do you have any specific documentation you can share which provides those details regarding the mirrors? I'm interesting in finding out more about the substantive differences between the mirrors and what (if any) changes that AWS makes or requires for software featured on those mirrors, and how software updates might be prioritized differently on the mirrors. [19:33] ShellcatZero: there's two things here; the ubuntu pro instances have some changes available https://ubuntu.com/aws/pro [19:34] ShellcatZero: the 'usual' ubuntu ec2 mirrors are just squids that sit in front of the main archives [20:42] powersj: You might have some more official info about these mirrors?