chrome: 允许远程调试

一,默认不能从远程访问chrome的调试端口:

例子:

$ google-chrome --remote-debugging-port=9222 --user-data-dir=/data/python/xianyu/userdata

通过局域网ip访问:

image

本地可以访问:

image

二,通过端口转发供远程访问

$ socat tcp-listen:5656,fork tcp:localhost:9222

或:

ssh -L 0.0.0.0:9223:localhost:9222 localhost -N 

image

注意限制外网访问的ip,避免导致安全问题

 

posted @ 2025-11-21 19:43  刘宏缔的架构森林  阅读(48)  评论(0)    收藏  举报