| | |||||
| ||||||||
| Webmaster Tutorials Instructional webmaster-related how-to's and tutorials. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | GUIDE: How to help prevent SSH attacks Hi all, i thought i would share this guide with everyone. I created it to help people in securing their SSH connection. I will hopefully be adding a second part on other security methods soon. How to help prevent SSH attacks Enjoy! Rick
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS'
Last edited by rmwebs; 05-10-2007 at 01:15 AM.
|
| |
| | #2 (permalink) |
| Senior Member Join Date: Aug 2006 Location: Australia
Posts: 1,362
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Just to add to what you have there (which was good ) you should really move SSH off the main IP as well
__________________ Dolphins OMFG! BeZazz [US/UK] Low Cost Friendly Hosting 33% Discount Coupon 33-NPS |
| |
| | #3 (permalink) |
| Senior Member Join Date: Apr 2004 Location: Emerald Triangle
Posts: 4,592
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Great little TuT there Ricky, good advice and nice step by step. Nice Add by ethix as well. Both rep'd. Cyberian
__________________ Remember who your loyalties are divided between, and choose for the right reasons who deserves them. |
| |
| | THREAD STARTER #4 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks guys - and yes; its always a good idea to move SSH off the main IP, and if possible instead (or as well as) passwords, use IP detection (i.e only let your IP login). I plan on doing a second part which will focus more on server security as a whole rather than just SSH. Rick
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Feb 2006
Posts: 114
![]() | Your way is good, but I also do it this way. To effectively secure your ssh even further, you need to do: vi /etc/ssh/sshd_config 1) change the #Protocol 2,1 to Protocol 2 (remember to remove the remark since it's a comment) 2) change the PermitRootLogin yes to PermitRootLogin no 3) change the PermitEmptyPasswords no to PermitEmptyPasswords no 4) change Banner /some/path to Banner /etc/issue |
| |
| | THREAD STARTER #9 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I plan on adding a second part which will cover firewalls Rick
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | #10 (permalink) |
| NamePros Regular Join Date: Jan 2006 Location: OH
Posts: 374
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hello, I have done most of these things but I am curious as to know if it is working. I took a new server and installed BFD and changed the SSH port (plus other things) but I dont know if it is working. On all my other servers I get about 3-5 emails each a day from BFD saying it is working. But I have gotten no emails from the new one that has SSH on a different port. Can I check to see if it is working just by using the wrong password to log in on the new port? I dont know if I am not getting email because something is not set up right with it or if moving it to a different port has that much of an effect. |
| |
| | #11 (permalink) | ||||
| NamePros Member Join Date: Apr 2006
Posts: 101
![]() |
Most automated scanners out there looking to crack SSH are going to check on the default port (22), and obviously won't check the others as it's a waste of time. Because you changed port, these scanners aren't hitting your SSH and as a result you're not getting the warnings. Yes, you can try logging in manually with an incorrect password and this should flag up a warning. | ||||
| |
| | THREAD STARTER #12 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Yep, as Echelon17 stated. Once you've moved the port you are likely to get very few if any access attempts on the new port as its all done through use of automated bots that spend hours trying to crack the password.
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | THREAD STARTER #14 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Never really thought about that ![]() Will do it now though...thanks for the suggestion
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | THREAD STARTER #18 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Its not a case of being paranoid....its a case of common sense key based authentication isn't something that most people require....its a good way to secure it....but not a must have.
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | THREAD STARTER #20 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | THREAD STARTER #22 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Just a note, the article has moved to HERE...I've updated the link above too...the old link will still redirect to the new one for the time being.
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |