[Tips] linux用ssh简单端口转发

问题,需要将在localhost 8265端口运行的ray dashboard转到对外ip上查看。

ssh -fgN -L 8266:localhost:8265 服务器对外IP

要停止的时候

ps -aux | grep ssh

找到进程kill即可。

原文地址:https://www.cnblogs.com/immortalBlog/p/13860786.html