3
Maybe the title must be changed but I have the following situation:
I can ssh to a host A
From A, I can ssh into a machine B, but this machine cannot be accessed from my computer. The name of the machine (as well as its ip) is local only.
How can I sshfs (and/or use scp) directly to machine B, without having to scp files from B->A and then from A->my machine. I'm really loosing productivity that way,
PS: I can't change configs in A nor B...
Works Perfectly! – SshProblem – 2012-10-08T14:10:31.240
If you want to bind to a specific address locally, for example to allow another computer, W2, on the same network as W, to connect to B’s port 22, simply use
W $ ssh -L 198.51.100.1:1234:B:22 A
, where 198.51.100.1 is the external IP address of W. – Claudius – 2012-10-08T14:12:05.803