Protect OpenSSH Server on Windows from SSH Password Attacks with Automatic IP Blocking
RdpGuard
Intrusion prevention system for your Windows Server
 

OpenSSH Brute-Force Protection for Windows

OpenSSH provides encrypted remote access and file transfers through SSH, SFTP and SCP. On Windows, administrators can use OpenSSH Server to manage machines remotely and exchange files with Windows, Linux and other systems. It is available as a Windows component starting with Windows 10 build 1809 and Windows Server 2019.

Expose an SSH server to the Internet, and automated password guessing can begin within seconds. SSH servers listening on port 22 are a common target for automated attacks. Bots cycle through usernames and passwords, retry continuously and fill your logs with failed login attempts. Encryption protects the connection, but it does not stop someone from trying to guess an account's password.

The Windows Security log can show the scale of this activity. In this example, filtering for Event ID 4625 returns 9,021 entries. The selected event identifies sshd.exe as the caller process:

Date and time        Source                               Event ID  Task Category  Keywords
2021-08-15 07:08:19  Microsoft Windows security auditing  4625      Logon          Audit Failure
2021-08-15 07:08:04  Microsoft Windows security auditing  4625      Logon          Audit Failure
2021-08-15 07:07:55  Microsoft Windows security auditing  4625      Logon          Audit Failure
2021-08-15 07:07:54  Microsoft Windows security auditing  4625      Logon          Audit Failure
2021-08-15 07:07:54  Microsoft Windows security auditing  4625      Logon          Audit Failure
2021-08-15 07:07:54  Microsoft Windows security auditing  4625      Logon          Audit Failure
Selected Windows Security log entries: repeated failed logons.
Log Name:      Security
Source:        Microsoft Windows security auditing
Event ID:      4625
Logged:        8/15/2021 7:07:55 AM
Task Category: Logon
Keywords:      Audit Failure

Account Name:  NOUSER

Failure Information:
  Failure Reason: Unknown user name or bad password.
  Status:         0xC000006D
  Sub Status:     0xC0000064

Process Information:
  Caller Process ID:   0xec0
  Caller Process Name: C:\Windows\System32\OpenSSH\sshd.exe
Selected fields from event 4625: a failed logon initiated by sshd.exe.

Repeated failures across many usernames are a typical sign of automated password guessing. A single failed login can also be a legitimate user's typing mistake. RdpGuard monitors failed-login events in the OpenSSH Operational log and temporarily blocks the source IP address when detections reach your configured limit. This cuts off further attempts from that address during the blocking period and reduces repeated authentication traffic.

For 64-bit Windows and Windows Server. Supported Windows versions.

See Also

How to enable and configure OpenSSH brute-force protection - turn on protection, adjust blocking limits and verify failed-login detection in the OpenSSH Operational log.

RdpGuard 10.4.5 Free Trial

RdpGuard protects:

Our customers say

"This sotware is really great. It's a relief. Because my server is constantly under attack. Thanks RdpGuard" - Joaquim De Sousa Marques

"Nice product. I used to implement something similiar in a low-tech and cumbersome manner via a script called TSBlock (not mine). This makes it much easier and is well worth the pricetag for SMB's." - J. Johnson

"Absolutely amazed at your product. We are a church in the North Dallas area, and I discovered this morning multiple failed logon attempts via our Remote Access Server. A friend suggested your product, so I immediately downloaded the trial. It had a list of about five blocked IP addresses in minutes, and that was enough to lead me to push the BUY button. Over the past 10-15 minutes the list is now about thirty with at least a third being international attempts to break into our system. Thanks for a great product. You may have just saved us much grief." - John Hallford

"Love the software. RDP on our Windows servers is just ridiculous. We would block it in the router but we have lots of old-time customers that would have issues." - Scott Hirsch

"Love the software! Makes it easier than tailoring VB Scripts!!" - Nick Brennan

"It's a great product - really stopping those RDP attackers :-)" - Dave, UK

"First of all: Your application is very (!!!) useful and I like it very much securing my 2012 R2 server. RdpGuard is the best solution, I found on the market and after 10 minutes of testing it I ordered the fully-featured version. :-)" - Carsten Baltes

Our Other Products
Copyright © 2012-2026 Netsdk Software FZE. All rights reserved.  Terms of Use.  Privacy Policy.  Refund Policy.