The Configure SSH Tunnel dialog opens when you click Configure SSH on the Database tab in the Data Source Properties dialog.

Use this dialog to enable SSH tunneling and to specify the associated settings.

Item Description
Use SSH tunnel Select this check box to set up and use an SSH tunnel for accessing a remote database via an SSH proxy.
SSH tunnel will be opened on localhost (127.0.0.1) and port Specify the port that should be opened on your local computer for SSH tunneling. This may be any unused port number in the range from 1 to 65535.

Note that if SSH tunneling is used, you should specify localhost or 127.0.0.1 in place of the DB host and the SSH port specified here in place of the DB port in the Database URL field (the Database tab in the Data Source Properties dialog).

Proxy host Specify the hostname (domain name) or IP address of the SSH proxy server that you are using. The SSH proxy server host must be accessible by the specified hostname or IP address from your local computer.
Port Specify the port on which your SSH proxy server accepts SSH connections. The port number 22 suggested by IntelliJ IDEA is the standard port used by SSH servers. Change this number if your SSH proxy server uses a different port.
Proxy user Specify the name of the SSH proxy user.
Auth type Specify the user authentication type used by your SSH proxy. Select:
  • Password for password-based authentication.
  • Key pair (Open SSH) for key-based authentication.
Proxy password For password-based authentication: specify the password for the SSH proxy user.
Private key file For key-based authentication: specify the path to the file where the corresponding private key is stored. Type the path in the field, or click browseButton (Shift+Enter) and select the file in the dialog that opens.
Passphrase For key-based authentication: specify the passphrase for the private key if the key is locked with the passphrase.
Remote DB host Specify the IP address or hostname of the computer on which the target database is located. The database host must be accessible by the specified IP address or hostname from the SSH proxy server host.
Port Specify the database port on the database host.

See Also

Reference:

Web Resources: