Sunday, September 08, 2013

How to change SSH port in centOS, Ubuntu.

Default port for SSH is 22 but if we want we can change the default port, To change the port no for SSH follow the steps below.

  • ssh server

  • vi /etc/ssh/sshd_config
search for line port portno (port 22) then change it from here to the port you want.

  • service sshd restart (Do not forget to restart sshd service)

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)