How to restrict and secure SSH (Secure Shell) Access

Filed in Centos 2 comments

changeing the ssh port to a non-standard port
for securing it first you need to change the access to the ssh to a non-standard port so that even by using some backdoors your root password was hacked you are convinience that nobody still has any access to the ssh to destroy your file and server
to do so run this command to open the “/etc/ssh/sshd_config” with nano editor

nano /etc/ssh/sshd_config

got to the line containing

#Port 22

and remove the # to uncomment it and use an alternative instead of port 22
remember to mention the unstandard port that you changed in the firwall to allow tcp_out and tcp_in connections
so it will turn out to be somthing like this

Port 3957

and also put the the port number”3957″ tcp_out and tcp_in in the firewall

Force the SSH to use the protocol 2
second go and edit this line

#Protocol 2, 1

and by removing the # to uncomment this line and specify the protocol 2 for ssh by changing it to

Protocol 2

Related posts:

  1. how to get all the connection to your webserver?
  2. How to allow just the specific IP Addresses to access ssh
Posted by voshka   @   8 March 2010 2 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

2 Comments

Comments
Mar 12, 2010
2:52 pm
#1 WP Themes :

Amiable brief and this fill someone in on helped me alot in my college assignement. Thank you seeking your information.

Author Mar 12, 2010
2:57 pm
#2 voshka :

Happy to hear so
Hope I could be able to train more technical IT related area

thank you too
voshka

Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone