Live data from Hacker News

What SSH Hacking Attempts Look Like

medium.com

41–50 of 186 posts

Re: What SSH Hacking Attempts Look Like

#41
post #36
post #30

The numbers on https://cdn-images-1.medium.com/max/1600/1*47UCBwMdQGFNtk2ao... look very suspicious.

Looks like the graph was generated from the Top 10 only. Obviously every item appears exactly once, so they all have the same 10%. The presentation as a graph is useless.

More notably, two slices are listed as 11%, for a total of 102% - in a pie chart!

Re: What SSH Hacking Attempts Look Like

#42
post #35

Earlier quoted context omitted.

Fail2Ban and psad will do wonders for that.

Yeah, I now simply removed 0.0.0.0/0 dport 22 from the whitelist and only added a select few IP ranges. That has calmed the storm significantly, and if an IP from this range (my ISP) tries it anyway I can contact my ISP (a small local ISP) to take that down.

That's even better, if you don't need to access from arbitrary IPs.

Re: What SSH Hacking Attempts Look Like

#43
post #22

Earlier quoted context omitted.

Do you ever examine logs? Fail2ban (or even better, using a nonstandard port or both) keep the noise out of lots to the point that you can still examine them manually. Without it, 99.99% of the average ssh log is failed back attempts.

Changing the port away from 22 also had that effect in my experience.

This was like night and day. Non stop constant barrages on the default port, all quiet on the ssh k@ip -p XXX.

Re: What SSH Hacking Attempts Look Like

#44
I’ve never been able to understand this.

Why is it that paranoid nerds need to waste so much time masturbating over failed SSH login attempts?

All you need to do is turn off password auth, or perhaps use wireguard.

Re: What SSH Hacking Attempts Look Like

#46
I am slowly closing all non-vital ports on my router and just letting services accessible from within the VPN.

No open port = no hacking attempts.

Investing a week of on-and-off studying and tinkering with openvpn is really paying off.

Re: What SSH Hacking Attempts Look Like

#47
post #40

# cat /etc/ssh/sshd_config | grep PasswordAuthentication PasswordAuthentication no ^ it should return that. The end.

Is it worth mentioning useless uses of cat in this day and age?

No. The alternative is not any better. Besides if you don't know what you are looking for, piping greps after each other is faster to type.

Re: What SSH Hacking Attempts Look Like

#48
post #27
post #21

Earlier quoted context omitted.

It would most probably never end up pegging an entire core if you use key auth and have conventional logins deactivated, no? I mean, why would people even try.

They simply try password auth, and fail with a message that password auth is off. Constantly. All the time.

Set up a non standard port. This will stop over night.

Re: What SSH Hacking Attempts Look Like

#49
post #2

Fairly standard stuff, definitely interesting to see all the IoT credentials attempred. I'd recommend SSHGuard over fail2ban though, I seem to remember the version of fail2ban in the Debian repos completely choking on IPv6 and failing open which is obviously undesirable.

Fail2ban failing on ipv6 is strange given it doesn't do anything networky. It just analyses logs and updates iptable.
Post reply on HN