SSH Failed Login Attempts Print

  • 5

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're trusted by amazing customers in 136 countries - come & join us!
OR.S May 10, 2024
Excellent host

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.

Christopher James May 1, 2024
I'm very pleased

Affordability, reliability and great customer service. I hos ted my website here. George built something that will potentially be big.

Paola Meyer April 13, 2024
Customer Attention is 5 Stars

Customer Attention. Staff of Ethernet Servers is superb, fast and answers tickets in a pretty speedy manner.

stxsh February 17, 2024
Excellent Provider with Exceptional Support

Been with them for a week and the transition from old hostin g to ethernetserver has been nothing but a joyful experience. Setting up new vps, networking is like a breeze. All set up by george and nothing to worry about really.

Ethernet Servers Ltd
124 City Road
United Kingdom

Registered Limited Company: #09114946

+44 330 043 1258


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

Proudly serving customers in 136 countries since September 2013!