Public-key Authentication is based on the use of digital signatures and provides the best authentication security.
For Public Key Authentication to work four things are needed:
- the remote server(s) you are connecting must have your public key.
- the local client you are connecting from must have your private key.
- the remote server must be configured to allow you to login using your public key.
- the local client must be configured to use your private key while logging into remote server.
The following instruction guides you through the process of configuring a SSH connection using Public Key Authentication. To successfully establish a SSH connection , set the SSH connection properties in the corresponding boxes: Host name/IP address, Port number, User name, Authentication Method, Private Key and Passphrase.
- Click
or choose File ->
New Connection to set up the Connection Properties.
- Select the SSH tab and enable Use SSH Tunnel.
- Fill in the required information:
Host Name/IP Address
A host where SSH server is activated.
Port
A port where SSH server is activated, by default it is 22.
User Name
A user on Linux machine. (It is a Linux user. It is not a user of Database Server.)
Authentication Method
Choose between Password Authentication and Public Key Authentication
Private Key
It is used together with your public key. The private key should be readable only by you.
Passphrase
A passphrase is exactly like a password, except that it applies to the keys you are generating and not an account. The passphrase be any length under 1024 characters.
- Navicat host name at the General Settings page (MySQL, Oracle or PostgreSQL) should be set relatively to the SSH server which provided by your database hosting company.
See also:
Advanced Settings
Related topics:
Password Authentication