I have the following configuration and want to establish a tunnel on a tunnel. I read already the following topic: How to put a tunnel in a tunnel?
My configuration:
Notebook --> Linux Server A --> Linux Server B
Notebook: Windows XP with putty
Linux Server A and B: Ubuntu 10.10
I have a ssh connection with a tunnel from my notebook via putty to Server A. Now I want to establish a tunnel from Server A to B, so that I can connect with an IDE directly to my jboss on Server B.
This is the command I tried on Server A to establish a tunnel:
ssh -t -L 8080:localhost:8080 Server B -p 8822
This won't work.
Anybody an idea how to establish a working tunnel?
-W <host>:<port>
option, that avoids the use ofnc
. – Alex Stragies Apr 16 '17 at 16:19-J
(orProxyJump
) which makes this even easier; but that's only in OpenSSH 7.3 and up. – Piskvor left the building Apr 18 '17 at 09:08