PDA

View Full Version : [SOLVED] How do I see what ports are available?


mrcoulson
September 18th, 2009, 12:17 PM
I would like to change SSH port to something besides 22. Is there a way to display what ports are being used so I can choose one that is not in use?

Jeremy

x3roconf
September 18th, 2009, 12:35 PM
Try: sudo lsof -i :)

i.r.id10t
September 18th, 2009, 03:00 PM
netstat -tapn

Also, look at /etc/services since it lists default ports for many services...

mrcoulson
September 18th, 2009, 04:34 PM
Excellent! Perfect! Thanks a ton!

Enthusiastically,
Jeremy