VPS optimization

I talked a lot recently  about how optimization of your code helps keep problems out of your way during your shared hosting life. Today I would like to give you something more to think about and possibly use. It’s a great “How To” from one of the greatest hosting forums I have come across so far.

It’s from webhostingtalk.com and they have one really great tutorial on their forum. [click for the link]

It’s not great because it’s from this forum, but because it’s provided by people like you and me. It’s from people for people and there are lots of great things in there! One more reason to start your search for a web host on a forum instead of on a review web site ;)

For those of you who do not like to blindly click on links I will post a few preview quotes from the guide, but you will get much more as soon as you visit this forum. there you can ask questions about your specific needs ;)

Restrict SSH Access
To restrict and secure SSH access, bind sshd to a single IP that is different than the main IP to the server, and on a different port than port 22.

SSH into server and login as root.
Note: You can download Putty by Clicking Here (http://www.chiark.greenend.org.uk/~s…/download.html). It’s a clean running application that will not require installation on Windows-boxes.

At command prompt type:
pico /etc/ssh/sshd_config

Scroll down to the section of the file that looks like this:
#Port 22
#Protocol 2, 1
#ListenAddress 0.0.0.0
#ListenAddress ::

Uncomment and change
#Port 22
to look like
Port 5678 (choose your own 4 to 5 digit port number (49151 is the highest port number AND do not use 5678  lol )

Uncomment and change
#Protocol 2, 1
to look like
Protocol 2

Uncomment and change
#ListenAddress 0.0.0.0
to look like
ListenAddress 123.123.123.15 (use one of your own IP Addresses that has been assigned to your server)

Note 1: If you would like to disable direct Root Login, scroll down until you find
#PermitRootLogin yes
and uncomment it and make it look like
PermitRootLogin no

As you can see even a task like securing your SSH is an important thing and it’s covered on this forum! Have a nice day and try to ask questions to use the advantages of the  forum to it’s maximum ;)

Image: renjith krishnan / FreeDigitalPhotos.net

No related posts.

, , ,

Comments are closed.
Get Adobe Flash playerPlugin by wpburn.com wordpress themes