How to connect to MariaDB using SSH Tunneling and Port Forwarding?
I have Ubuntu 18.04 which is connected through putty using a private key and running fresh install of MariaDB 10.1 and done the mysql secure installation.
I have HeidiSQL installed on my windows PC which I want to connect to the MariaDB server via SSH tunneling and port forwarding.
In the server terminal I did:
sudo ssh user@myserverip -L 3333:localhost:3306
But i get an error: Permission denied (public key)
Any help would be much appreciated!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×