I have a virtual machine on Azure—for testing, not a production server—based on Ubuntu 14.04 LTS. The default SSH port
22 is opened by default.
I want to change it to
12131. I edited my SSH configuration file and changed port to
12131, then reloaded ssh service by:
service ssh reload
Then I logged into my Windows Azure portal and updated endpoint SSH as:
Public Port 12131
Private Port 12131
Now I’m getting timeout with SSH. What is the proper way to change the default SSH port on Ubuntu 14.04 in Azure?