我有一个类似的问题从这个问题如何转储远程数据库没有mysqldump?
如何运行
ssh -f L 3306:localhost:3306 user@remoteserver -N
我收到以下错误
bind: Address already in use channel_setup_fwd_listener: cannot listen to port: 3306 Could not result local forwarding
您可能已经在运行使用端口3306的本地MySQL服务器。
您可以更改隧道的本地端口,如下所示:
ssh -f -L 33306:localhost:3306 user@remoteserver -N
但是当然你必须把你的本地工具指向端口33306。