目标:从外网访问内网的某台机器
步骤:
需要让三台ssh互相持有公钥
在内网机器执行
autossh -M 6768 -fCNR 6767:localhost:22 ming@xx.xx.xx.xx在外网服务器执行
ssh -fCNL *:1236:localhost:6767 ming@localhost
目标:从外网访问内网的某台机器
步骤:
需要让三台ssh互相持有公钥
在内网机器执行
autossh -M 6768 -fCNR 6767:localhost:22 ming@xx.xx.xx.xx
在外网服务器执行
ssh -fCNL *:1236:localhost:6767 ming@localhost