Now we can connect to the Azure VM by entering the following command into the Git Bash shell:
$ ssh –i ./dockerhostkey [email protected]
–p 22
We use the identity file parameter “–i” to specify the path to our private key file. We use the port parameter “–p,” which is optional when SSH is enabled on port 22. Azure sometimes provisions the Azure VM with a random SSH port. We can find the SSH information at the end of the Properties blade of our Azure VM.
Once we hit “Enter,” we are asked for the passphrase that we entered when creating the public key (if you chose to enter a passphrase during creation). After a successful authentication, our Git Bash shell should look similar to Figure 2.10.
18.222.21.175