Loading...
Real Time Concepts

Enable Port through sshd

how to change listening port in ubuntu

vi /etc/ssh/sshd_config

# What ports, IPs and protocols we listen for can change here

Port 22
sudo systemctl restart sshd

how to change listening port in centos

 vi /etc/ssh/sshd_config

you can disable port 22 and create your own ssh port in config file as below

Port 2242
#Port 22
sudo service sshd restart
Leave a Reply

Your email address will not be published. Required fields are marked *