使用SSH端口转发记录

xiangqiao 2015-10-01

ssh -oGSSAPIAuthentication=no -CNfgR 9366:127.0.0.1:22 root@1.1.1.1 -p 57986

 ssh -CfgNR 4001::4001 root@119.29.38.232 

打开 /etc/sysctl.conf

中的net.ipv4.ip_forward = 1

/etc/ssh/sshd_config

AllowTcpForwarding yes  允许端口转发

GatewayPorts yes 允许绑定在 0.0.0.0上监听端口

相关推荐