User 2323866 2022-06-24 07:42:14 阅读数:987
There is a public network on a certain online station IP such as 126.96.36.199 On , Opened a SSH Account number proxyuser password , I hope you can pass this SSH Can implement forward proxy or SOCKET5 Tunnel agent, etc , Easy access to online intranet . SOCKET5 The tunnel has been played many times ,windows use xshell or Bitvise SSH Client Any tool is OK , But this time it was linux in , It is mainly used for online batch deployment , It is better to be able to use pure commands . I checked some information , This method is implemented
sh -L 0.0.0.0:22126:192.168.10.126:22 [email protected] -p 1555
After operation, this opportunity listens 22126, Connect local
ssh -p 22126 [email protected] Equal to connected
192.168.10.126:22 . LAN uses other xshell The computer To connect this machine 22126 It also means .
[[email protected] ~]# netstat -anp | grep 22126 tcp 0 0 0.0.0.0:22126 0.0.0.0:* LISTEN 21843/ssh
copyright：author[User 2323866]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/175/20210629105138295e.html