Written by James McDonald

September 20, 2011

Looking at my auth.log on an internet accessible server. I notice that there has been 3071 unsuccesful login attempts since last the logs rotated.

cat /var/log/auth.log | grep invalid | grep ssh  | wc
3071   49136  327541

# does any one know how to match two arguments using AND logic for grep?
# let me know if you do.

Hmm I had better do something about it:

Good general guide on Securing SSH

How to get a Debian / Ubuntu box to keep the iptables configuration across reboots


Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

List local disks

GET-CimInstance -query "SELECT * from Win32_DiskDrive" DeviceID Caption Partitions Size Model -------- -------...

Create ISO using Powershell

Usage New-IsoFile -NewIsoFilePath C:\tmp\Hyper-V.iso-sources -ImageName Hyper-V -SourceFilePath 'C:\tmp\Hyper-V'...