How To Add/Edit SSH Port Ubuntu/CENTOS/DEBIAN?
The default port of SSH is 22, if you want to add another port just follow the steps below:
1. Login as root
2. Open terminal
3. type : nano /etc/ssh/sshd_config
4. add the line Port port_number, for example if we want to add port 443, then:#
#What ports, IPs and protocols we listen for
Port 22
Port 80
5. Save the change.
6. To restart the SSH, type:
/etc/init.d/sshd restart for Ubuntu/Centos/Redhat
/etc/init.d/ssh restart for Debian
1 comments:
Thanks bro...
Post a Comment