Go Back   Web Server Hosting Forum by BODHost > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-19-07, 19:46
BOD Member
 
Join Date: Jul 2007
Posts: 296
Default ssh triks

well i really need my vps kuz im getting angry emails from buddies
and also they are trying to ssh brute force my serv so heres a trik for u all

Step One
SSH into ur srv and login as root.


Step Two
@ cmd prompt do: pico -w /etc/ssh/sshd_config


Step Three
Scroll down to da section of da file dat looks like this:


#Port 22
#Protocol 2, 1
#ListenAddress 0.0.0.0
#ListenAddress ::


Step Four
Uncomment and change

#Port 22
to smthing like
Port 1337 (49151 is da highest port number)

also change

#ListenAddress 0.0.0.0

to look like

ListenAddress 123.123.123.15 (use one of your own IP Addresses dat has been assigned to your server)
(make sure u uncomment the protocol 2,1 thingy)

Step Five
If you would like to disable direct Root Login, scroll down until you find

#PermitRootLogin yes

uncomment and change da yes to a no

Save (Ctrl o) , den exit (Ctrl x) .


then type:
/etc/rc.d/init.d/sshd restart

Step Seven
Exit out of SSH, and dan re-login to SSH using da new IP or ns, and da new port.
hav phun
__________________
insert sig here
Reply With Quote
  #2 (permalink)  
Old 10-26-07, 14:02
BOD Member
 
Join Date: Oct 2007
Posts: 34
Default

If you have cPanel as control panel there is One more solution to protect your server from Brute Force to any service on the server is ... Configure cPHulk

cPanel Server >> WHM >> Security Center >> cPHulk Brute Force Protection >> Configure cPHulk .

Glenn.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:09.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.