
If you see the error: Access denied for 'publickey'.return to Navicat and click Test Connection again.edit that file and remove the line starting with the domain for your remote server.Users//Library/Containers/12/Data/.ssh/known_hosts the results will include something like (using Navicat Essentials for PostgreSQL as an example):.in Terminal, run sudo find ~ -name known_hosts.on the SSH tab, change the Host field from a domain to the new IP address.in Navicat, edit the database connection.

So updating ~/.ssh/known_hosts doesn't affect the Navicat connection to the remote server. Navicat uses a different known_hosts file than the operating system does. How to get Navicat to accept the new known_hosts data and authorize the connection? Either you are under attack or the administrator changed the key.

Replacing the entries in ~/.ssh/known_hosts doesn't help. After building a new remote server and pointing the domain at the new IP address (and setting up the database and users, as well as adding your public RSA key to the new server), Navicat doesn't trust the key hash from the server. Summary:Īn existing connection to a remote database in Navicat was working using a domain name for the SSH > Host field. UPDATE Feb 2022: this issue may have been fixed in more recent versions.
