What are the advantages/disadvantages of changing the SSH/SFTP port?

Hi Everybody,

I read a few articles regarding the advantages and disadvantages to change the default SSH/SFTP port 22, but it's not very clear for me.
I understood when you change the default port 22 by another, you avoid the casual port scanning on the net but then why for the security staff it's not a good idea to change it?
Sorry but somebody can explain me that clearly?

Javier GonzalezAsked:
Who is Participating?
rindiConnect With a Mentor Commented:
SSH is by nature a secure protocol. If you use another port than the original, you only hide it from those who don't know much, as you mentioned the casual person scanning your ports, and those people will probably not have the expertise to break into it. Those who know what to do will also be able to find the new port you have assigned, so to them that new port makes no difference and it won't hinder them from trying to break in.

For security staff it makes no sense as it doesn't really add any better security, but it might make people think it is more secure and then drop their guard.
Javier GonzalezAuthor Commented:
Thanks Rindi for your clear explanation, I understood now nothing is improved by changing this port.
Gracias Amigo!
serialbandConnect With a Mentor Commented:
Only one thing is improved when you change your port.  You will have much fewer script kiddie scanners and much smaller log files.  If you have a home server on a random DSL or Cable modem line, it helps keep your log files very small and easy to manually parse.  You should still have a proper firewall to block multiple failed ssh attempts of someone skilled that happens to find your system.

It just makes no sense on public access ssh servers to change the port.  You can still change the port on the private servers to reduce the log file sizes, but you must still check the logs for suspicious activity.  Only inexperienced sysadmins will think that changing the port is secure.  It only reduces your log file sizes.
Javier GonzalezAuthor Commented:
Thanks guys!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.