Using the command
ssh -v -R 2255:localhost:2255 firstname.lastname@example.org I was trying to figure out why remote port forwarding wasn't working until I realized
GatewayPorts yes was not present in my host's sshd_config. Once I added that, it worked successfully.
Is there a way I could have diagnosed this?
The SSH even output the following (without
debug1: Remote connections from LOCALHOST:2255 forwarded to local address localhost:2255 debug1: channel 0: new [client-session] debug1: Requesting email@example.com debug1: Entering interactive session. debug1: pledge: network debug1: client_input_global_request: rtype firstname.lastname@example.org want_reply 0 debug1: remote forward success for: listen 2255, connect localhost:2255 debug1: All remote forwarding requests processed