Connecting to a VM
Each VM deployment can be used as a host to which you can connect. Depending on your infrastructure setup (availability of a public IP address and network security group (NSG) rules), such a connection is either a simple command in your terminal or a multi-step process including a variety of actions. In this section, we’ll focus on different methods of connecting to a VM, covering differences between operating systems and security measures. Let’s see how we can connect with a machine using SSH, RDP, and DNS name.
Connecting using SSH
A method of connection that works for both Windows and Linux is SSH connection. When connecting to a VM using this protocol, there is one prerequisite – port 22 accepting incoming connections. In the previous chapters (Chapters 3 and 4), we covered the topic of an NSG – a service that controls inbound and outbound access to the resource it’s connected to. From a connection point of view, it doesn...