Previously, user names and passwords were the only authentication methods supported by HTML SSH. However, more and more SSH servers are being used as key file authentication sites, especially within the cloud environment. SonicWall has now added support for that Key File authentication method.
A new option is introduced for HTML5 SSH bookmarks: SSHv2 Authentication Type.
There are two authentication types: Username + Password and Key File Authentication.
The Username + Password method is the default selection.
When devices are upgraded to 10.2.1, the authentication type is Username + Password as the default selection, but administrators can also select Key File Authentication to use identity file to login the SSH server.
When SSH key-based authentication is not configured on the server and key-based authentication is selected on the appliance, then it reverts back to username-password-based authentication.
Administrators log in to an SSH server with the Key File Authentication type:
Authentication error handling methods and the associated UI messages have been updated:
If the SSH server authentication method only supports a public key, update the error message to:
Need public key authenticate method. Please change the SSH Authentication Type to Key File Authentication in bookmark setting.
The username or identity file is incorrect.
If SSH server supports the username+password method, a pop-up message appears showing the Input Password dialog and for the user to try using the username and password login.
SSH resources can be configured either from the user interface or through an API. In the user interface, the SSH resource can be configured in the Global, Group, or User Level. The SSH resource can also be configured though an API.
To configure an SSH resource from the user interface
Login as Administrator from the SMA login screen.
Navigate to Users > Local Users or Users > Local Groups.
Edit a Local User or a Local Group.
From the Edit Local User page, click the Bookmarks tab.
Create an SSH Bookmark using an SSH server IP and set the SSHv2 Authentication Type option to Key File Authentication.
To configure an SSH resource from an API
Generate a Login ID using https://<<appliance IP>>/__api__/v1/logon GET request
.
Authenticate the appliance using https://<<appliance IP>>/__api__/v1/logon/<<Logon ID>>/authenticate POST
.
Create an SSH Bookmark using the sshAuthType
parameter as the keyfileauth
using the API https://<<appliance IP>>/__api__/v1/management/bookmarks POST
.
To access the SSH resource from the user interface
Login as Administrator from the SMA login screen.
Access the SSH Bookmark.
Set the Username as the server username, set the Private Key as the Private Key of the server and the Passcode as the passphrase that was set during the creation of the RSA key pair.