开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜