Today, if you look around a lot of business, are using the website and web hosting services. And the reason behind it is that today if you have a website then you can easily showcase your business products and services to the people around you and also to the people across the globe. Not only that you can also easily market your products and get better customers reviews. So today there are a lot of hosting platforms are available all you need to do is just choose the right hosting solution for your business.

 

For the best hosting platform to host your website we recommend you to go with our VPS server hosting. Yes here at HostingRaja we provide best in class VPS hosting at an affordable price with amazing features, offers and discounts. You can choose your desired hosting plan as per your requirements. Not only that we also provide managed VPS hosting solution where our dedicated support team will take care of your website and hosting related issues. We also provide 99.9% server uptime with 24/7 customer support via phone, chat, email and ticket system. So today if you are already using a VPS hosting solution of your business and now if you are looking for information on how to change SSH Port in Red Hat Enterprise then here is the complete information on it.

 

Follow the below steps to change your SSH Port in SELinux in your Virtual Server:

 

>>>> First you need to log in as a root user

 

>>>> Now you need to run semanage to check the settings of the port that you currently using. So use the below command

 

$           semanage port -l | grep ssh

 

>>>> Now you should be able to see something like this

 

ssh_port_t tcp 22

 

>>>> Next you need to proceed by adding your desired port number, so use the below command-

 

$            semanage port -a -t ssh_port_t -p tcp 5432

 

Note: Change 5432 port to your desired one

 

>>>> Now you need to run a quick check using the below command and you need to ensure that the port has  been added to the acceptable port list

 

$      semanage port -l | grep ssh

 

>>>> Once after execution of the above command you will be able to see that the desired port has been added-

 

ssh_port_t tcp 5432,22

 

>>>> Once everything is done you need to restart OpenSSH using the below command

 

/sbin/service sshd restart

 

By following the above steps it will allow you to access SSH via your desired port. Not only that you must also ensure that SSH is well configured and the port is also enabled in firewall setting as well.

Note: You can follow the methods if you have purchased dedicated host from HostingRaja. HostingRaja is well known in India market for providing quality fully managed dedicated server with 24/7 support. We provide dedicated server on Linux and Windows platform, but the above method is applicable only for the dedicated server. You can visit our dedicated server page to know more about our services.