How do I SSH into a SonicWall NSv Azure using SSH key pair?
07/21/2022 6 People found this article helpful 357,480 Views
Description
We can login to SonicWall NSv deployed in Azure using SSH password or SSH keys. This article describes how to setup SSH management for a SonicWall NSv instance hosted in Azure using SSH key pair.
Resolution
Generate SSH keys in the Azure portal:
1. Open the Azure portal. At the top of the page, type SSH to search. Under Marketplace, select SSH keys.
2. On the SSH Key page, select Create.
3. In Resource group select Create new to create a new resource group to store your keys. Type a name for your resource group and select OK.
4. In Region select a region to store your keys. You can use the keys in any region, this is just the region where they will be stored. Type a name for your key in Key pair name. In SSH public key source, select Generate public key source. When you are done, select Review + create. After it passes validation, select Create.
5. You will then get a pop-up window to select Download private key and create resource. This will download the SSH key as a .pem file. Once the .pem file is downloaded, you might want to move it somewhere on your computer where it is easy to point to from your SSH client.
Provide an SSH public key when deploying a VM:
While deploying a VM that uses SSH keys for authentication, specify your SSH public key when creating the VM using the Azure portal or Azure Resource Manager templates
Create an SSH private key using PuTTY key Generator:
1. Launch PuTTY Key Generator. In the Actions section, click Load to load an existing private key file. Change the file type to search for to All Files. Select the key that you saved earlier and click Open.
2. Click Save private key, then enter a file name in the Save private key as dialog box to save it for use with PuTTY.
SSH Log in to the SonicWall NSv by using your private key with PuTTY:
1. Enter a name or IP address for the session and Click Connection > SSH > Auth in the left navigation pane and configure the SSH private key to use by clicking Browse under Private key file for authentication. Navigate to the location where you saved your SSH private key file, select the file, and click Open. The file path for the SSH private key file now displays in the Private key file for authentication field.
2. Click Open to begin your session with the SonicWall.
Related Articles
Categories