When I ssh into another system and press Ctrl-Z, I expected the ssh client to go into background. However, it's the remote process that does that. Where does the magic happen?
The SSH client disables special key handling (
OpenSSH supports a special command to suspend the client – Enter, then ~, followed by CtrlZ.