Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 SSH 隧道连接到生产机器?它有几个阻塞的端口,我想从我的开发盒连接并调试它。
使用以下命令
ssh -N -v -L<LOCAL_PORT>:<PRODUCTION_MACHINE>:<PRODUCTION_PORT> <PRODUCTION_MACHINE>
例如)ssh -N -v -L2047:my-production-server.com:8000 my-production-server.com