Connecting to the VM Using SSH and Git Bash on Windows

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


Image Note

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.

Image

FIGURE 2.10: Git Bash shell connected to Azure VM

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.116.51