天天看點

ssh建立安全跳闆機,友善外網登入内網機器

環境centos7兩台

跳闆機: eth0:X.X.X.X

     eth1:10.165.93.161

内網主機:eth0:10.165.93.162

ssh建立安全跳闆機,友善外網登入内網機器

解析:

-4  以ipv4位址格式

-f  背景運作

-g  允許遠端主機進行連接配接本地端口2222

-L [bind_address:]port:host:hostport

-N  Do not execute a remote command.  This is useful for just for-

             warding ports (protocol version 2 only).

繼續閱讀