Generating a SSH key and use the result to log in to your Azure Linux VM is not that hard to accomplish. In the following article I want to go over the steps.
PuTTYgen is used to generate public or private key pair for creating SSH keys. Below is the complete guidance about how to generate RSA key in the Windows operating system: Once you install the PuTTY on your machine, you can easily run PuTTYgen. For the same, go to Windows - Start Menu - All Programs - PuTTY - PuTTYgen.
Get PuTTYgen to generate your SSH key
To generate a key pair with the PuTTY key generator, simply run puttygen.exe and click the Generate button in the window that appears. You will be asked to move the mouse and press keys to improve the random number generation at the heart of SSH security.
Follow the instructions to generate your SSH key pair. Adding your SSH public key to GitLab. To add the SSH public key to GitLab, see Adding an SSH key to your GitLab account. Note: Once you add a key, you cannot edit it. If it didn’t paste properly, it will not work, and you will need to remove the key from GitLab and try adding it again.
The most frequently used tool in Windows for SSH is called Putty, and it has an easy-to-use key generator called the Putty Key Generator. Using it is easy. Just open the Putty Key Generator and click Generate.
Next you want to make sure that SSH-2 RSA is marked.
Hit “Generate” and make sure to move the mouse within the blank area of the application.
Save the key
If your key is created you can optional set a passphrase (this would prompt you for a password on a login with your key). Also you want to save the private key (we need it later for PuTTY).
Login to Azure, select your VM, “All Settings” and “Reset password“. Enter a username (please mind the info box above the “User name” field) and select “SSH public key“. Insert your copied key into the text box and hit “Save“. https://brainnew203.weebly.com/blog/avg-pc-tuneup-2015-key-generator.
Log in to your VM via PuTTY
When your settings are saved, open PuTTY enter your login ip / url on the start form, then select “Connection -> SSH -> Auth” and hit “Browse …“.