SSH tunneling when all connections are password protected

898 Views Asked by At

I've looked for several scenarios of SSH tunneling over here, but none of them worked for me. My schema is like this:
Laptop ------> gateway ------> remote.
Pretty common case, but the connection between gateway ----> remote is also password protected. I need my application (NX player though) to connect to remote via port 22. I can login to gateway via ssh and then login to remote (with different user/password), so it should be possible to do what I want, just not sure how. I'm using openssh in laptop/gateway.

1

There are 1 best solutions below

0
On

make sure sshd running on gateway support port forwarding.

/etc/ssh/sshd_config

AllowTcpForwarding yes