bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53847: 28.0.91; Tramp SSHFS: incorrect remote home directory


From: Philipp Stephani
Subject: bug#53847: 28.0.91; Tramp SSHFS: incorrect remote home directory
Date: Wed, 9 Mar 2022 10:17:24 +0100

Am Mi., 9. Feb. 2022 um 17:10 Uhr schrieb Michael Albinus
<michael.albinus@gmx.de>:
>
> Philipp Stephani <p.stephani2@gmail.com> writes:
>
> Hi Philipp,
>
> > To reproduce this, you need two GNU/Linux machines with the same user
> > name but different home directories.  Assume that on host 1 the user's
> > home directory is /home1/user, and that on host 2 the user's home
> > directory is /home2/user.  With the SSH protocol, home directory
> > expansion works as expected:
> >
> > However, this fails with SSHFS:
>
> Tilde expansion is not possible for sshfs (and adb, rclone) methods of
> Tramp. I've added a check, and Tramp raises an error now when it detects
> a tilde. Pushed to master.
>

Thanks, but would it maybe be possible to find a better solution? I've
been using SSHFS for a while now, and this particular issue is pretty
annoying in practice. How about any of the following:
- When connecting over SSHFS, ask the remote host (via SSH) for the
home directory and cache the result.
- Allow the user to configure a per-host static home directory (i.e.
just a customizable mapping from hosts + users to home directories). I
regularly only connect to 2 hosts with known hostnames and home
directories, so at least for me maintaining such a mapping would be
feasible.
WDYT?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]