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 dockeradmin@dockerhost-3udvgzn4.cloudapp.net –p 22
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 ...
Get Microservices with Docker on Microsoft Azure™ (includes Content Update Program) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.