SSH Failed Login Attempts Print

  • 9630

Some Linux distributions, such as CentOS 7, will display a statistic upon logging in via SSH to alert you if there have been any failed login attempts:

There were 51 failed login attempts since the last successful login.

Unfortunately, this is considered normal. Bots are well known to scour the internet in the hope of brute forcing services such as SSH. Fortunately, there's a quick and easy solution to help protect this particular service - change the port!

The default port for Linux servers is 22, which is what such bots will typically target. 

The exact process for changing your SSH port may vary depending on your OS and configuration, however, as a general rule of thumb, open the /etc/ssh/sshd_config file, locate #Port 22 and remove the comment (#). Then, change 22 to a value of your choice (i.e. 2222) and restart SSH (typically service sshd restart will do the trick).

Was this answer helpful?

« Back

We've worked with 25,506 customers in 143 countries - come & join us!
Dr Robert James June 16, 2024
"Server is very fast"

I got a VPS from Ethernet Servers and everything about their service i s good. The server is very fast, 24 hr customer support, prompt trouble shooting at back end. Pricing is reasonable. I would love to avail of their services for a long time. :) Thank You. Dr Robert James

Daniel Imray June 7, 2024
"Very good choice"

Amazing so far, everything seemed to work great when I put my first si te up, when I had some minor queries I got very quick responses to support requests. I'm very glad I found Ethernet Servers, as I didn't have a clue what hosting site to use, or how they work, but this seems to be a very good choice.

mahdi khoramnejad May 19, 2024
"Best support"

They have the best support. It's really great.

OR.S May 10, 2024
"Highly recommended"

Excellent host. Prompt replies in good, clear English, easy migration from HG, good speed, all necessary info provided on sign up (ftp, logins etc) error free. Highly recommended


Ethernet Servers Ltd
124 City Road
London
EC1V 2NX
United Kingdom


Registered Limited Company: #09114946

Telephone:
+44 330 043 1258

Email:
sales@ethernetservers.com

Copyright © 2014 - 2024 - Ethernet Servers Ltd - All Rights Reserved.

Proudly serving customers in 143 countries since July 2014!