Cmd Generator

ssh

SSH 远程登录客户端。

ssh -R "8080:localhost:80"

示例

# 将本地 80 端口暴露在远程服务器的 8080
ssh -R 8080:localhost:80 user@gateway.example.com

# 远程暴露本地服务
ssh -R 3306:localhost:3306 user@remote.example.com