refused local port forward: originator error

If you are using a software like navicat or heidiSQL to connect remotely to your database server using an SSH tunnel you may have encounter below error:

sshd[17382]: refused local port forward: originator port 0, target localhost port 3307

The error is due to the fact that the ssh service is not configured to allow port forwarding.
To fix this you need to change the ssh settings in the following file:

and change
AllowTcpForwarding no
AllowTcpForwarding yes

make sure to restart the ssh service after that:

service sshd restart
Redirecting to /bin/systemctl restart sshd.service
  • refused local port forward
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

 How to upgrade Mariadb to the latest? (Centos)

In order to upgrade mariadb to the latest on a Centos server, you need to configure a new repo...

Powered by WHMCompleteSolution