![]() To do this, we look for the machine in our Azure subscription, for example, in my case it is called f23uh4733:Īnd we double click on the current rule for port 22:Īnd you must modify the value of the port 22 to port defined in the configuration file: Now we need to edit the security rule in the control panel of the virtual machine to reflect the change in port. We close the remote session that we are running, that still go through the port 22. Now to restart the ssh service, run: sudo service ssh restart Edit the configuration file with nano for example: sudo nano /etc/ssh/sshd_configĪnd we change where it says port 22 by the value we want (eg I put 40167): You can connect to the machine through its public IP or DNS with a client like Putty through that port. ![]() Immediately after creating the virtual machine, the default port is 22. ![]() Let’s see how to change the ssh and xrdp ports on a Azure Linux virtual machine. A basic safety recommendation is to change the default connection ports of a system for the various available communications services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |