使用SSH端口转发记录

ssh -CfgNR 4001::4001 [email protected] 

打开 /etc/sysctl.conf

中的net.ipv4.ip_forward = 1

/etc/ssh/sshd_config

AllowTcpForwarding yes  允许端口转发

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

你可能感兴趣的:(使用SSH端口转发记录)