Re: [PATCH] private mounts

Miklos Szeredi
2005-04-24T21:16:17Z

> > > I believe the point is:
> > >
> > > 1. Person is logged from client Y to server X, and mounts something on
> > > $HOME/mnt/private (that's on X).
> > >
> > > 2. On client Y, person does "scp X:mnt/private/secrets.txt ."
> > > and wants it to work.
> > >
> > > The second operation is a separate login to the first.
> >
> > Solution?
>
> ... is the same as for the same question with "set of mounts" replaced
> with "environment variables".

No. You can't set "mount environment" in scp.

Otherwise your analogy is nice, but misses a few points. The usage of
mounts that we are talking about is much more dynamic than usage of
environment variables. You wouldn't want to set an environment
variable in all your shells just to access a remote system though
sshfs for example. It _is_ possible (except the ftp, scp case) but
_very_ inconvenient.

I ask again, what solution would you suggest?

Thanks,
Miklos