logoalt Hacker News

jasongillyesterday at 1:42 PM3 repliesview on HN

While in an SSH session, press enter, then type tilde and capital C (enter ~C) and you can add command line options to the current session. To add a port forward from your local 8080 to the remote port 80 without closing the connection, do:

  enter ~C -L 8080:localhost:80

Replies

Tepixyesterday at 3:57 PM

Thanks. This could really benefit from a TUI!

zimpenfishyesterday at 1:57 PM

That is a neat trick. Added to the list.

(Ultimately unhelpful though because I use mosh everywhere these days and that doesn't appear to have anything fancy like this.)

dylan604yesterday at 2:39 PM

Maybe it's just still too early in the morning yet, but what is the significance of hitting enter first?

show 1 reply