Changing SSH default port 22 to another port in Ubuntu 16.04/14.04 and CentOS 7

Changing the SSH default port in ubuntu, CentOS Linux Server: Changing SSH port number is a good idea....