ssh隧道

A:雲服務器服務器

B:內網主機A 192.168.66.250ssh

C:內網主機B 192.168.66.240ide


B:spa

ssh -p 22 -fNR 22222:localhost:22 root@A.ipserver


A:ip

ssh -fNg -L 9099:localhost:22222 localhost
it


C:io

ssh -p 9099 root@A.ipclass


autossh -M 10900 -fN -o "PubkeyAuthentication=yes" -o "StrictHostKeyChecking=false" -o "PasswordAuthentication=no" -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R A.ip:10022:localhost:22 relayserver_user@1.1.1.1雲服務

相關文章
相關標籤/搜索