I'm trying to setup a reverse ssh tunnel as follows:
A ==========> B <----X---- C
I'm initiating the tunnel from
ssh -p 443 -NR 19001:localhost:21 userOnB@B
B I can use the tunnel fine if I use:
ssh -p 19001 userOnA@localhost
But if I'm connecting to
B with its name, IP address or another computer (say
C) I get a
ssh: connect to host port 19001: Connection refused.
What is wrong?