Next, you will be prompted for the username and password then successful loginĦ – Once you see this screen, it is time to update the Ubuntu distribution. Upon successful configuration, if you click back on the overview menu, you will see the DNS name: hostname that you can use for Putty and the remote desktop to the Linux serverģ – Copy and paste the DNS name to the hostname text field at the Putty Screenshot and click on the OpenĤ – The first time connecting to the server using Putty, you will get the following screenshotĥ – Just click on the yes button. You will be brought to another configuration screenshot then here, key in the DNS name: hostname and click saveĢ – We are configuring the DNS Name so that we don’t need to use the IP address for both Putty and also to the remote desktop to the Linux server. Also, don’t forget to specify the Resource Group too, before clicking OK.Ĥ – For the VM Size, I would recommend choosing a size with at least 1 vCPUs, as this will give you better performance for the UI then click on OKĥ – On the Settings pane, you can leave all the default values, and click OK.Ħ – Finally, click Create on the Summary pane to create the Ubuntu Linux VM and you will proceed to the following screenħ – Now that you have an Ubuntu Server Linux VMġ – Click on the IP address as per highlighted. To keep things simple, you’ll want to set the Authentication type to Password, then enter a password you’ll use to login with the Username you’ve entered. Upon logging into the Azure portal, you will see the following screenshotĢ – Click on Create a Resource in the left-side navigation, then select the Compute category, then click on Ubuntu Server, the version listed is Ubuntu Server 17.10ģ – Next, fill in some details about your VM, such as the Name, Username, and method of Authentication. Linux VMs are commonly managed using SSH connections rather than a desktop environment.ġ – First, you need to log into the Azure portal. When new to Linux, or for quick troubleshooting scenarios, the use of remote desktop may be easier. Most Linux VMs in Azure does not have a desktop environment installed by default. We hope this tutorial was enough Helpful.Microsoft Azure Linux virtual machines (VMs) are usually managed from the command line using a secure shell (SSH) connection. SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off) – Now, login to the client machine, and perform the psql remote connection to the PostgreSQL database server as shown below.
Test the Remote Connection To PostgreSQL Server # sudo firewall-cmd -permanent -add-port=5432/tcp – By default, PostgreSQL server listens at the port 5432, to allow the remote access we have to open the 5432 port # CentOS 7 / RHEL 7 # sudo systemctl restart postgresql-11 # FOR Postgresql 11 # sudo systemctl restart postgresql-10 # FOR Postgresql 10 – After making changes, we have to restart the PostgreSQL server # sudo systemctl restart postgresql # sudo vi /var/lib/pgsql/11/data/pg_hba.conf # FOR Postgresql 11 # sudo vi /var/lib/pgsql/10/data/pg_hba.conf # FOR Postgresql 10 – Add the following line in the pg_hba.conf file to allow access to all databases for all users with an encrypted password: # sudo vi /etc/postgresql/9.6/main/pg_hba.conf # defaults to 'localhost' use '*' for all Listen_addresses = '*' # what IP address(es) to listen on # sudo vi /var/lib/pgsql/11/data/nf # Postgresql 11 # sudo vi /var/lib/pgsql/10/data/nf # Postgresql 10 # sudo vi /etc/postgresql/9.6/main/nf # Postgresql 9.6
– Edit this line in your nf file as shown below.