To securely with compute resources on Microsoft Azure it is necessary to establish a SSH Key Pair.
The following steps are an abbreviated form of Azure's detailed instructions on creating an SSH Key Pair. These steps can be performed from command line on Linux, Mac, or Windows (via MobaXterm).
Step 1: Run 'ssh-keygen':
$ ssh-keygen
- Change the path to the path & filename you want your key to be stored in, e.g. /Users/cory6458/.ssh/dcosiotdemo
- Leave passphrase blank by hitting the return key.
Step 2: Review the resulting SSH Key Pair files. The .pub file is the public key and the file without an extension is the private key file.
Congratulations: You now have an SSH Key Pair in place that can be used securely communicate to compute resources on Azure.