开发者

can I do ssh port forwarding after I've already logged in with ssh?

开发者 https://www.devze.com 2023-02-15 07:15 出处:网络
I have an Ubuntu server example.com and I have ssh\'ed into it. But only after I ssh into it, do I realize that I meant to do ssh -L 8000:localhost:9000 example.com. Is there a way to create that tunn

I have an Ubuntu server example.com and I have ssh'ed into it. But only after I ssh into it, do I realize that I meant to do ssh -L 8000:localhost:9000 example.com. Is there a way to create that tunnel in an already establi开发者_开发技巧shed and running ssh connection?


If you set your escape character with EscapeChar option in ~/.ssh/config or with the -e option you can.

Assuming an escape of ~: ~C-L 8000:localhost:90000 will do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消