通过ngrok服务器转发端口到本地80:
ngrok 80
自定义二级域名,需在ngrok官网注册账号获取auth token:
ngrok -authtoken Co1KiaaAdpapgD -subdomain=example 80
转发TCP协议其它端口,
ngrok -authtoken Co1KiaaAdpapgD -proto=tcp 22
指定远程服务器端口:
auth_token: Co1KiaaAdpapgD
tunnels:
ssh:
proto:
tcp: "22"
remote_port: 52222
启动:
ngrok -config ngrok.conf start ssh
标签:none