port range for SSH
by max21 from LinuxQuestions.org on (#54E8M)
I been using a ssh port in this range 1024-49151 for Months. I believe I read this was the most recommended range for ssh at lots of web sites. Today I stumbled on a site that posted this and the last line has me confused. I also was confused about the first three lines in the very beginning, months ago, because lots of How-To Website with SSH Examples use port numbers in this range [1024-49151] .. so I thought I been doing the right thing up until now:
Quote:
When it comes to changing the ssh port number I/we mostly see 2222 as the replacement of port 22.
These may be some strange questions to some of you but I need to know the truth once and for all:
1) Should I be using a port in this range 49152-65535 and why?
2) What are the security risk of using a port number in this range which I have been using for months.(1024-49151)?
Any info would be appreciated.


Quote:
ICAAN classifies ports in two three categories: 1.System/well known ports: 0-1023 2.User or registered ports: 1024-49151 3.Dynamic/private ports: 49152-65535 To prevent misconfiguring your server, you should choose a port from the dynamic/private ports range (e.g. 49160, 53425, 64342 and so on). |
These may be some strange questions to some of you but I need to know the truth once and for all:
1) Should I be using a port in this range 49152-65535 and why?
2) What are the security risk of using a port number in this range which I have been using for months.(1024-49151)?
Any info would be appreciated.