0
我有一個連接到遠程mysql與膩子通過ssh與端口轉發的問題。putty portforwarding mysql windows
remote: ubuntu 14.04
remote ip address: 1.1.1.1
remote port of mysql: 3306
local: windows 7
這工作時,我能夠在膩子隧道與下面的配置
source port: 3306
destination: 127.0.0.1:3306
user: root (all privileges enabled)
有了這個配置,我可以與工作臺連接到localhost:3306
但奇怪的是,當我更改配置像這樣
source port: 3306
destination: 127.0.0.1:3307
user: root (all privileges enabled)
我無法連接localhost上的工作臺:3307。我得到一個10061錯誤(無法連接到'127.0.0.1'上的MySQL)
我想更改端口,因爲我需要在本地窗口上運行一個mysql實例。
與Mac 10.10,我沒有問題連接到遠程MySQL,具有以下ssh命令:
ssh [email protected] -L 3307:127.0.0.1:3306 -N or ssh [email protected] -L 3306:127.0.0.1:3306 -N
與Mac,我可以用在兩個端口上工作臺連接。
我已經嘗試在膩子中更改端口,但它似乎是與MySQL或Windows的問題。
也許有些重要的是,有一個autossh代理從另一臺服務器運行到該遠程服務器進行復制。
在此先感謝。