Skip to end of metadata
Go to start of metadata

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.

  1. Open PuTTYGen and click Generate to generate new public/private keys.

  2. Generate randomness by moving the mouse when prompted. 

  3. 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

  1. Open a new terminal session.
  2. 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.

  1. From Terminal, run the following command

  2. 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.