Hacker News new | ask | show | jobs
by solarmist 1590 days ago
SSH question for people.

A few years ago I learned how to suspend an ssh terminal connection (like ctrl-z for a regular app). I forgot how to do that or even how I would look it up.

Anyone know?

1 comments

You’re looking for the tilde key. Hit `~?` for a help menu in-session. You may need to precede that with a fresh carriage return to make it work.
Yes! That's it. “~ ctrl-z” Thank you!
Yep! Can add extra port forwards in that menu too by resending -L or -R in that menu.

The fresh carriage return is key. Took me awhile to understand it needed to be done on an unblemished input line.

I'm pretty sure this stacks for nested ssh sessions too. ~ current session, ~~ for it's parent, and so on. I might have this reversed.