远程开发
通过跳板机远程访问内网机器
Host target
HostName 内网ip
Port 22
User xx
IdentityFile ~/.ssh/id_rsa
ProxyJump getway
Host getway
HostName 公网ip
Port 22
User xx
IdentityFile ~/.ssh/id_rsa
通过跳板机远程连接内网 Windows 桌面
# Windows电脑使用自带的远程桌面 或者 Mac 下使用 Microsoft Remote Desktop 访问 localhost:3390 即可访问远程 Windows
ssh -L 3390:内网ip:3389 xx@公网ip -p 22
通过跳板机远程连接内网 Mac 桌面
# 通过苹果原生的屏幕共享或者VNC客户端访问 localhost:5900 即可访问远程 Mac
ssh -L 5901:内网ip:5900 xx@公网ip -p 22