similar question (CentOS 6.4): Changing SSH Default Port 22 to 444
similar question (restart the ssh daemon on ubuntu1404):How can I restart the SSH daemon on Ubuntu?
similar question (CentOS 6.4): Changing SSH Default Port 22 to 444
similar question (restart the ssh daemon on ubuntu1404):How can I restart the SSH daemon on Ubuntu?
Warning: Make sure the new SSH port does not conflict with any known or blocked ports.
To Change the SSH Port for Your Linux Server
Connect to your server via SSH.
Switch to the root user.
Run the following command:
vim /etc/ssh/sshd_config
Locate the following line:
# Port 22
Remove # and change 22 to your desired port number.
Restart the sshd service by running the following command:
service ssh restart
reference (change to work on ubuntu 1404): https://hk.godaddy.com/en/help/changing-the-ssh-port-for-your-linux-server-7306