[CentOS] Running SSH on a different port

Oliver Ransom oliver at ransom.com.au
Sat Oct 24 14:12:08 UTC 2009


On 24/10/2009, at 11:26 PM, ML wrote:

> HI All,
>
> With my new firewall in place, it has opened my eyes to how much
> traffic gets blocked in a single day and also what are the most active
> rules. I get *a lot* of requests for port 22.

Look in /etc/ssh/sshd_config

You can specify the port there, it's the first option which is  
commented out.

>
> How does one switch ssh ports? What is a good port to use? What
> ramifications does it have when I need to ssh in? Is it as simple as
> ssh user at hots:port?
>

To specify another port you need to use ssh -p X -l whateveruse IP

I don't think there are any ramifications/disadvantages of running the  
SSH daemon on a non standard port.

> Best,
> -ML
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos



More information about the CentOS mailing list