On Fri, May 12, 2006 at 06:57:11PM +0200, Marco Calviani wrote:
> Hi list,
>  i have a question regarding shfs. I'm use to connect a remote
> computer (let's call it C) from a linux machine (A) via ssh passing
> through a *nix gateway (B). I would like to be able to transfer data
> from C to A as easy as possible. Since B works only as a gateway i'm
> not able to save anything into it. Is there a way to use shfs (or
> similar) in order to reach this objective?

I can't test the shfs part - I tried shfs out a while back, liked it,
but got rid of it since I never really seemed to use it.

But the ssh part is easy: just use port forwarding (assuming you have
ssh access to B; if not, you're out of luck). Using your example,
you'll need to do something like:

  ssh -L8022:C:22 B

Port 8022 on your local machine A is now a tunnel to port 22 (the ssh
port) on C. You should be able to mount directories from C on A, by
pointing shfs at port 8022 on A. Something like:

  shfsmount -P 8022 A:/remotedir /mnt/mountpoint

This all assumes your user name is the same on all machines. If not,
just specify the appropriate user name before the host names.
E.g. shfsmount -P 8022 [EMAIL PROTECTED]:/remotedir /mnt/mountpoint where "user"
is your user name on machine C, *not* A, because you're in fact
tunnelling to C with this command.

HTH,

Toby
-- 
PhD Student
Quantum Information Theory group
Max Planck Institute for Quantum Optics
Garching, Germany

email: [EMAIL PROTECTED]
web: www.dr-qubit.org
-- 
[email protected] mailing list

Reply via email to