一般sshd配置文件路径为/etc/ssh/sshd_config
添加一行:
GatewayPorts Yes
则允许远程主机连接到转发端口,相当于-g

重启sshd再重新建立tunnel即可

http://linux.chinaunix.net/techdoc/net/2007/01/01/947181.shtml

Published in Linux

No Responses to “使用ssh -R做端口转发时为何-g不起作用”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)