Mic*_*ulc 8 ssh ssh-tunneling mysql mysql-connection
我的新生产服务器只能通过 ssh 双隧道看到。我可以通过 Ubuntu 的 14.04 控制台访问targetHost,只需执行命令ssh targetHost
而不是在远程机器上执行 mysql cli,但我想通过 gui Workbench 访问 MySQL db。如何在 Workbench 中配置连接来实现呢?
我的.ssh/config:
Host targetHost, firewallHost
User username
IdentityFile /home/michalszulc/.ssh/id_rsa
Host targetHost
proxycommand ssh -W %h:%p firewallHost
Host firewallHost
hostname firewallHost.example.com
port 2201
passwordauthentication no
controlmaster auto
controlpath ~/
Host targetHost
Hostname 123.123.123.123
Run Code Online (Sandbox Code Playgroud)
过程很简单。\n创建新连接并选择连接方法 Standard TCP / IP over SSH。\n提供隧道的 SSH 服务器的值 \xe2\x80\x8b\xe2\x80\x8b:
\n\nPasswordAuthentication
在 SSH 服务器上启用了策略,则其值为no
)。值 \xe2\x80\x8b\xe2\x80\x8b 用于连接到 DBMS MySQL。
\n\nbind_adress
MySQL)。 归档时间: |
|
查看次数: |
8147 次 |
最近记录: |