Using PuTTY to Generate SSH Keys in Windows
Use PuTTYGen on Windows to generate private/public key pairs for SSH authentication.
Once PuTTYGen has been downloaded, use the following procedure to generate a SSH key for a SoftNAS® instance in Microsoft Azure.
- Open PuTTYGen and click Generate to generate new public/private keys.
- Generate randomness by moving the mouse when prompted.
- Copy the public key, which will be used for the SoftNAS® instance in Microsoft Azure.
Note: Save both the private and public keys.
Using OpenSSH to Generate SSH Keys in Linux
To set up SSH access, the following is required:
- Create a public/private key pair.
- Copy the public key that will be uploaded to the remote server.
Create the Key Pair
- Open a new terminal session.
- Run the ssh-keygen command to create a new public/private key.
Select a location on the local machine (default location is recommended). Also, provide a passphrase to protect the private key at this time, if required.
Adding the Key to the Remote Server
Note: Add the newly created public key to the SoftNAS® instance in Microsoft Azure. In order to do this, copy the key from Terminal and then paste it into the SoftNAS® VM at time of creation.
- From Terminal, run the following command
- Copy the entire output, including ssh-rsa. This is the public key that needs to be pasted into the appropriate field at SoftNAS® VM creation.
Move on to complete section Create & Configure Virtual Machine.