Why can I connect to mysql through ssh -> mysql, but cannot connect through a ssh tunnel, address is bound to localhost(bind-address 127.0.0.1)?

坚强是说给别人听的谎言 提交于 2021-01-01 07:17:18

问题


I can connect to the server by ssh (ssh #ssh_user#@#ssh_host#) and then use mysql -u#db_user# -p#db_password#. Then I can use the mysql command line as usual, but I am trying to setup DBeaver so I have a client interface for it. Is it impossible to do when the bind-address is set to localhost?

SSH tunnel settings

host: #ssh_host#
port: 22
user: #ssh_user#
auth: (key)

SSH tunnel itself works, I tried it with ssh -L 23:#ssh_host#:22 #ssh_user#@#ssh_host#

来源:https://stackoverflow.com/questions/43652978/why-can-i-connect-to-mysql-through-ssh-mysql-but-cannot-connect-through-a-ss

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!