Linux SSH forward proxy enables local machine initiated access to intranet B machine online through the online a machine springboard

User 2323866 2022-06-24 07:42:14 阅读数:987


There is a public network on a certain online station IP such as 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 [email protected] -p 1555

After operation, this opportunity listens 22126, Connect local ssh -p 22126 [email protected] Equal to connected . LAN uses other xshell The computer To connect this machine 22126 It also means .

[[email protected] ~]# netstat -anp | grep 22126
tcp 0 0* LISTEN 21843/ssh
copyright:author[User 2323866],Please bring the original link to reprint, thank you.